joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47979d
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
lea eax, [ebp - 0x258]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ecx
xor bl, bl
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x479823
lea eax, [ebp - 0x22c]
push 0x49cc40
push eax
call fcn.00425222
pop ecx
pop ecx
test eax, eax
je 0x479811
lea eax, [ebp - 0x22c]
push 0x4c6b7c
push eax
call fcn.00425222
pop ecx
pop ecx
test eax, eax
je 0x479811
push dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x22c]
call fcn.0046dae5
pop ecx
test al, al
je 0x4798d4
mov bl, 1
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x4797c7
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp byte [ebp + 0x14], 0
je 0x4798cb
lea eax, [ebp - 0x258]
push eax
push 0x4c6b74
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4798c2
mov edi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
mov ebx, dword [ebp - 4]
test byte [ebp - 0x258], 0x10
je 0x4798b0
lea eax, [ebp - 0x22c]
push 0x49cc40
push eax
call fcn.00425222
pop ecx
pop ecx
test eax, eax
je 0x4798b0
lea eax, [ebp - 0x22c]
push 0x4c6b7c
push eax
call fcn.00425222
pop ecx
pop ecx
test eax, eax
je 0x4798b0
lea eax, [ebp - 0x22c]
push eax
call edi
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0047979d
test al, al
je 0x4798df
push 0x4c6b7c
call edi
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x479852
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0x10
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor al, al
jmp 0x4798cd
xor ebx, ebx
jmp 0x4798c4
Function at 0x479b2b
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x14]
call fcn.00409cb3
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
push 0x4c6b74
mov dword [ebp - 0x18], eax
inc dword [eax]
call fcn.004033c6
lea eax, [ebp - 0x278]
mov bl, 1
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x479c8a
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
call fcn.00473874
cmp eax, 1
je 0x479c85
cmp eax, 0xb
jne 0x479bb0
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x479b90
lea eax, [ebp - 0x24c]
push 0x49cc40
push eax
call fcn.00425222
pop ecx
pop ecx
test eax, eax
je 0x479c6b
lea eax, [ebp - 0x24c]
push 0x4c6b7c
push eax
call fcn.00425222
pop ecx
pop ecx
test eax, eax
je 0x479c6b
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040a8c7
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x14]
call fcn.004033c6
test byte [ebp - 0x278], 0x10
je 0x479c48
cmp byte [ebp + 0x18], 0
je 0x479c17
add dword [esi], 1
adc dword [esi + 4], 0
cmp byte [ebp + 0x1c], 0
je 0x479c6b
push 0x49cb68
lea ecx, [ebp - 0x14]
call fcn.004033c6
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 4]
push dword [ebp + 0x18]
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call fcn.00479b2b
mov bl, al
test bl, bl
je 0x479c87
jmp 0x479c6b
mov edx, dword [ebp + 0xc]
xor eax, eax
or eax, dword [ebp - 0x258]
mov ecx, dword [ebp - 0x25c]
add dword [edx], eax
adc dword [edx + 4], ecx
cmp byte [ebp + 0x18], 0
je 0x479c6b
add dword [edi], 1
adc dword [edi + 4], 0
lea eax, [ebp - 0x278]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x479b90
jmp 0x479c87
xor bl, bl
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea ecx, [ebp - 0x24]
call fcn.0040988f
lea ecx, [ebp - 0x14]
call fcn.0040988f
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 0x18
Function at 0x47c476
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
cmp dword [edi + 0x74], 4
mov eax, dword [esi + 0x54]
mov dword [ebp - 4], eax
jne 0x47c498
or eax, 0x800000
mov dword [ebp - 4], eax
movzx eax, word [edi + 0x78]
xor ebx, ebx
push ebx
push ebx
push dword [edi + 0x70]
push dword [edi + 0x30]
push dword [edi + 0x20]
push eax
push dword [edi + 0x10]
push dword [esi + 4]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi], eax
test eax, eax
jne 0x47c4e4
mov dword [esi + 0x18], 0xb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47c4dd
push eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
xor al, al
jmp 0x47c603
push ebx
push dword [ebp - 4]
push ebx
push ebx
push ebx
push dword [edi + 0x60]
push ebx
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
test edi, edi
jne 0x47c508
mov dword [esi + 0x18], 0xc
jmp 0x47c5dc
cmp byte [ebp + 0xc], bl
je 0x47c518
push dword [ebp + 8]
mov ecx, esi
push edi
call fcn.0047d001
test dword [ebp - 4], 0x1000
je 0x47c54f
lea eax, [ebp + 8]
mov dword [ebp + 8], 4
push eax
lea eax, [ebp + 0xc]
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [ebp + 0xc], 0x100
lea eax, [ebp + 0xc]
push 4
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x47c5d5
push edi
call fcn.0047c437
cmp eax, 0xc8
jne 0x47c5d5
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push eax
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x20
push eax
lea eax, [ebp - 0x24]
push eax
push 5
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x24]
push eax
call fcn.004262eb
pop ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
cmp byte [ebp + 0x10], bl
je 0x47c5bd
mov ecx, esi
push edi
cmp byte [esi + 0x30], bl
je 0x47c5b4
call fcn.0047cf1a
jmp 0x47c5b9
call fcn.0047ce44
mov bl, al
jmp 0x47c5f6
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47c5d1
push eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
mov bl, 1
jmp 0x47c5f6
mov dword [esi + 0x18], 0xd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47c5f6
push eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
test edi, edi
je 0x47c601
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x47cd1e
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
inc ebx
push edi
mov edi, ecx
cmp eax, ebx
jne 0x47cd3b
movzx ecx, word [edi + 0x8c]
jmp 0x47cd3f
movzx ecx, word [edi + 0x58]
movzx edx, cx
mov ecx, dword [edi + 0xc0]
cmp dx, bx
jne 0x47cd55
xor esi, esi
push esi
push esi
push esi
push ebx
jmp 0x47cd7c
cmp dx, 2
jne 0x47cd76
dec eax
neg eax
sbb eax, eax
and eax, 0xffffffcc
xor esi, esi
push esi
push str._local_
push dword [eax + edi + 0xb0]
push 3
jmp 0x47cd7c
xor esi, esi
push esi
push esi
push esi
push esi
push ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [edi + 4], eax
test eax, eax
jne 0x47cd8e
xor al, al
jmp 0x47cdae
cmp byte [edi + 0xdc], 0
je 0x47cdac
push 8
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
push ecx
push 0x32
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x47ce44
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
mov esi, ecx
push edi
push 0x4c6a94
push dword [esi + 0x34]
call fcn.0042e5db
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x47ce70
mov dword [esi + 0x18], 0x1f
jmp 0x47ceea
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 4]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x47cee3
cmp dword [ebp - 4], 0
je 0x47cebb
push edi
push ebx
push dword [ebp - 4]
lea eax, [ebp - 0x404]
push eax
call fcn.0042dba3
mov eax, dword [ebp - 4]
add esp, 0x10
add dword [esi + 8], eax
adc dword [esi + 0xc], 0
test eax, eax
jne 0x47ce76
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0x47cecc
mov dword [esi + 0x18], 0x21
jmp 0x47ceea
and dword [esi + 0x18], 0
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47cf06
push eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
jmp 0x47cf06
mov dword [esi + 0x18], 0x20
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47cf04
push eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
xor bl, bl
test edi, edi
je 0x47cf11
push edi
call fcn.0042e668
pop ecx
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4
Function at 0x47cf1a
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
inc eax
mov esi, ecx
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov eax, dword [ebp - 8]
test eax, eax
jne 0x47cf4d
mov eax, 0x400
mov dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
je 0x47cfa5
test eax, eax
jne 0x47cf5a
mov edi, ebx
jmp 0x47cf66
push eax
call fcn.0041fdfb
mov edi, eax
mov eax, dword [ebp - 8]
pop ecx
lea ecx, [ebp - 4]
push ecx
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x47cfd2
cmp dword [ebp - 4], ebx
je 0x47cf9c
push dword [ebp - 4]
lea ecx, [esi + 0x44]
push edi
call fcn.0047d27e
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
adc dword [esi + 0xc], ebx
test eax, eax
je 0x47cfa5
mov eax, dword [ebp - 8]
jmp 0x47cf52
push ebx
push edi
call fcn.0041fdbd
pop ecx
pop ecx
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0x47cfe4
mov dword [esi + 0x18], 0x21
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47cfce
push eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
xor al, al
jmp 0x47cffa
push ebx
push edi
call fcn.0041fdbd
pop ecx
pop ecx
mov dword [esi + 0x18], 0x20
jmp 0x47cfb4
mov dword [esi + 0x18], ebx
mov ecx, dword [esi + 0xd4]
test ecx, ecx
je 0x47cff8
push ecx
call dword [sym.imp.KERNEL32.DLL_SetEvent]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x498193
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 0x44
push 0
mov ebx, 0x4d3018
push ebx
call fcn.00422330
push 0x10
push 0
mov esi, 0x4d305c
push esi
call fcn.00422330
add esp, 0x18
mov dword [0x4d3018], 0x44
xor eax, eax
inc eax
mov dword [0x4d3044], eax
push esi
push ebx
mov word [0x4d3048], ax
xor eax, eax
push eax
push eax
push 0x20
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
pop esi
pop ebx
test eax, eax
je 0x4981f8
push dword [0x4d305c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ebp
ret 4

Function at 0x4981fc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 3
pop esi
mov edx, dword [edi + 4]
mov dword [ebp + 8], edx
cmp dword [edi + 0x190], ebx
je 0x4982ae
mov ebx, esi
cmp dword [0x4d1934], esi
jl 0x4982a5
mov eax, dword [0x4d1924]
mov eax, dword [eax + ebx*4]
mov ecx, dword [eax]
test ecx, ecx
je 0x49829c
cmp dword [ecx + 4], edx
jne 0x49829c
mov dl, byte [ecx + 0x90]
cmp dl, 0xb
je 0x498299
mov dh, byte [ecx + 0x93]
movzx eax, dh
cmp eax, dword [edi + 0x190]
je 0x498269
cmp byte [edi + 0x198], 0
je 0x498299
cmp dh, 0xff
je 0x498299
cmp dl, 0xa
je 0x498299
push 0
push dword [ecx]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4d1924]
mov eax, dword [eax + ebx*4]
mov eax, dword [eax]
test byte [eax + 0x92], 0x40
je 0x498299
cmp byte [eax + 0x90], 0x1a
jne 0x498299
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebp + 8]
inc ebx
cmp ebx, dword [0x4d1934]
jle 0x498227
mov ebx, dword [ebp + 0xc]
mov dword [edi + 0x190], ebx
cmp dword [0x4d1934], esi
jl 0x498342
mov eax, dword [0x4d1924]
mov eax, dword [eax + esi*4]
mov ecx, dword [eax]
test ecx, ecx
je 0x498332
cmp dword [ecx + 4], edx
jne 0x498332
cmp byte [ecx + 0x90], 0xb
je 0x498332
movzx eax, byte [ecx + 0x93]
cmp eax, dword [edi + 0x190]
jne 0x498332
test byte [ecx + 0x92], 0x20
jne 0x498332
push 0
push dword [ecx]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4d1924]
push 4
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4d1924]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
test byte [eax + 0x92], 0x40
je 0x498332
cmp byte [eax + 0x90], 0x1a
jne 0x498332
push 1
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebp + 8]
inc esi
cmp esi, dword [0x4d1934]
jle 0x4982ba
push 0
push ebx
push 0x130c
push dword [edi + 0x188]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x498590
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
cmp word [eax], di
je 0x4986a9
push edi
push edi
push 3
push edi
push edi
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4985e1
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
push esi
push 2
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x4985e8
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x4986d8
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push 0
lea ecx, [ebp - 0xc]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test esi, esi
je 0x4985e1
lea eax, [ebp - 8]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 4]
xor edi, edi
push eax
push 0x49fc38
push edi
push edi
push dword [ebp - 8]
mov dword [ebp - 4], edi
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4985e1
mov eax, dword [ecx]
lea edx, [ebp + 0xc]
push edx
push ecx
call dword [eax + 0xc]
lea eax, [ebp - 0x24]
push eax
push 0x18
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov eax, dword [edx]
test eax, eax
jne 0x498686
mov eax, edi
cmp dword [ecx], edi
jne 0x498686
mov eax, dword [ebp - 0x20]
mov dword [edx], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [edx]
push 0x2000
push dword [ecx]
push eax
push edi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
jmp 0x4986ae
mov eax, edi
mov dword [ebp + 0xc], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x64], 0
je 0x4986c3
push dword [esi + 0x64]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp + 0xc]
push eax
push edi
mov dword [esi + 0x64], eax
mov esi, dword [esi]
push 0x172
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x401308
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x40131a
mov eax, dword [0x46908b]
shl eax, 2
mov dword [0x46908f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.0045d5e8
pop edx
call fcn.0045d54c
call fcn.0045d628
push 0
call fcn.0045ea34
pop ecx
push 0x469034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x469093], eax
push 0
jmp fcn.00463ed0

Function at 0x4132c8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x46efcc
cmp dword [edi], 0
jne 0x413344
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x46efc8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x46a804
mov ecx, 2
call fcn.00424174
mov edx, 0x4132a0
lea eax, [esi + 5]
call fcn.004132c0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004132c0
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x413319
mov dword [0x46efc8], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41750c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x417545
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0042599c
jmp 0x41754e
mov eax, ebx
mov edx, esi
call fcn.00425900
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x417558
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x417579
mov al, byte [esp]
jmp 0x41757b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x418768
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x4187cc
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00425b14
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00415a68
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4187d3
lea eax, [ebp - 0xc]
call fcn.004258ac
ret
Function at 0x424be8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x46ad2c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x424c80
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x424c60
xor eax, eax
push ebp
push 0x424c59
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x424c9c
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424c60
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x46ad2c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x46ad2c], ax
mov esp, ebp
pop ebp
ret

Function at 0x425730
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46f2e8], 0
je 0x425791
cmp word [0x46f4bc], 0xd7b2
jne 0x425759
cmp dword [0x46f4c4], 0
jbe 0x425759
mov eax, 0x46f4b8
call dword [0x46f4d4]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4257b8
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x46ad3c], 0
jne 0x4257ad
push 0
push 0x46ad94
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x4271bc
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4273ec
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x42723f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4273ec
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x42723f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x427408
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4272c8
xor eax, eax
push ebp
push 0x4272c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00427004
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x4272a6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x427428
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x4272a6
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4272c8
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4273e2
cmp byte [ebp - 0xd], 0
jne 0x42730f
cmp byte [ebp - 0x12], 0
je 0x4273e2
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x427328
dec ebx
cmp byte [ebx], 0x2e
je 0x427337
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x427327
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4273e2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x427374
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4273e2
cmp byte [ebp - 0xd], 0
je 0x4273e2
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4273e2
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret