joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ba30
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.00405060
call sub.kernel32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.kernel32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x40ba66
jmp 0x40baa5
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x40ba63
cmp al, 0x20
je 0x40ba63
cmp al, 0x22
jne 0x40ba89
jmp 0x40baf4
cmp al, 0x20
lea esi, [esi]
je 0x40ba90
test al, al
je 0x40baa5
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
jne 0x40ba77
movzx eax, byte [ebx]
cmp al, 0x20
jne 0x40bb0a
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x40ba97
cmp al, 0x20
je 0x40ba97
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x40bab4
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sub.kernel32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00401803
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
cmp al, 0x22
je 0x40bafe
add ebx, 1
movzx eax, byte [ebx]
test al, al
jne 0x40baf0
cmp al, 0x22
sete al
movzx eax, al
add ebx, eax
jmp 0x40ba90
cmp al, 9
je 0x40ba97
jmp 0x40baa5

Function at 0x42e006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e072
nop
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x29e805e8
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e060
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x5ee17880
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401110
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x445040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x107]
push 0x103
push 0
push eax
mov dword [ebp - 0x10c], 0
mov byte [ebp - 0x108], 0
call fcn.00419170
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x10c]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
lea eax, [ebp - 0x108]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathA]
push 0x104
lea eax, [ebp - 0x108]
push str.chrome.exe
push eax
call fcn.0041a920
add esp, 0xc
xor ebx, ebx
test eax, eax
sete bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00415d2d
mov esp, ebp
pop ebp
ret 4

Function at 0x4011d0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x445040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x107]
push 0x103
push 0
push eax
mov dword [ebp - 0x10c], 0
mov byte [ebp - 0x108], 0
call fcn.00419170
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x10c]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
lea eax, [ebp - 0x108]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathA]
push 0x104
lea eax, [ebp - 0x108]
push str.opera.exe
push eax
call fcn.0041a920
add esp, 0xc
xor ebx, ebx
test eax, eax
sete bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00415d2d
mov esp, ebp
pop ebp
ret 4

Function at 0x401290
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x445040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x107]
push 0x103
push 0
push eax
mov dword [ebp - 0x10c], 0
mov byte [ebp - 0x108], 0
call fcn.00419170
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x10c]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
lea eax, [ebp - 0x108]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathA]
push 0x104
lea eax, [ebp - 0x108]
push str.safari.exe
push eax
call fcn.0041a920
add esp, 0xc
xor ebx, ebx
test eax, eax
sete bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00415d2d
mov esp, ebp
pop ebp
ret 4
Function at 0x402e60
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00402f60
push str.2608637B_0FB5_4D83_92D8_0B1C41DF4F61
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402e96
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
mov dword [ebp + 8], eax
lea eax, [ebp - 0x1c]
push 0
push eax
call esi
test eax, eax
je 0x402ef8
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x402ee6
lea eax, [ebp - 0x1c]
push eax
call edi
lea eax, [ebp - 0x1c]
push eax
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call esi
test eax, eax
jne 0x402ec6
pop edi
pop ebx
push dword [0x447320]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x447324]
mov esi, dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
test eax, eax
je 0x402f20
push eax
call esi
mov dword [0x447324], 0
mov eax, dword [0x447550]
test eax, eax
je 0x402f36
push eax
call esi
mov dword [0x447550], 0
mov eax, dword [0x44754c]
test eax, eax
je 0x402f4c
push eax
call esi
mov dword [0x44754c], 0
mov eax, dword [ebp - 0x14]
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4035d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc34
mov eax, dword [0x445040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x40380d
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40380d
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xc34], ax
lea eax, [ebp - 0xc32]
push eax
call fcn.00419170
add esp, 0xc
lea eax, [ebp - 0xc34]
push 0x104
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
movups xmm0, xmmword [str.New_Tab___Google_Chrome]
push 0x1d8
lea eax, [ebp - 0x9fc]
movups xmmword [ebp - 0xa2c], xmm0
push 0
movups xmm0, xmmword [0x43faec]
push eax
movups xmmword [ebp - 0xa1c], xmm0
movups xmm0, xmmword [0x43fafc]
movups xmmword [ebp - 0xa0c], xmm0
call fcn.00419170
movups xmm0, xmmword [str.Google___Google_Chrome]
mov eax, dword [0x43fb34]
mov dword [ebp - 0x7fc], eax
movzx eax, word [0x43fb38]
movups xmmword [ebp - 0x824], xmm0
push 0x1da
movups xmm0, xmmword [0x43fb1c]
mov word [ebp - 0x7f8], ax
lea eax, [ebp - 0x7f6]
push 0
movups xmmword [ebp - 0x814], xmm0
push eax
movq xmm0, qword [0x43fb2c]
movq qword [ebp - 0x804], xmm0
call fcn.00419170
movups xmm0, xmmword [str.Google_Search___Google_Chrome]
mov eax, dword [0x43fb74]
push 0x1cc
movups xmmword [ebp - 0x61c], xmm0
mov dword [ebp - 0x5e4], eax
lea eax, [ebp - 0x5e0]
movups xmm0, xmmword [0x43fb4c]
push 0
push eax
movups xmmword [ebp - 0x60c], xmm0
movups xmm0, xmmword [0x43fb5c]
movups xmmword [ebp - 0x5fc], xmm0
movq xmm0, qword [0x43fb6c]
movq qword [ebp - 0x5ec], xmm0
call fcn.00419170
movups xmm0, xmmword [str.__Search___Google_Chrome]
movzx eax, word [0x43fba8]
push 0x1d6
movups xmmword [ebp - 0x414], xmm0
mov word [ebp - 0x3e4], ax
lea eax, [ebp - 0x3e2]
movups xmm0, xmmword [0x43fb88]
push 0
push eax
movups xmmword [ebp - 0x404], xmm0
movups xmm0, xmmword [0x43fb98]
movups xmmword [ebp - 0x3f4], xmm0
call fcn.00419170
movups xmm0, xmmword [str.YouTube___Google_Chrome]
push 0x1d8
lea eax, [ebp - 0x1dc]
movups xmmword [ebp - 0x20c], xmm0
push 0
movups xmm0, xmmword [0x43fbbc]
push eax
movups xmmword [ebp - 0x1fc], xmm0
movups xmm0, xmmword [0x43fbcc]
movups xmmword [ebp - 0x1ec], xmm0
call fcn.00419170
add esp, 0x3c
lea edi, [ebp - 0xa2c]
xor esi, esi
lea eax, [ebp - 0xc34]
push edi
push eax
call fcn.0041713a
add esp, 8
test eax, eax
jne 0x4037fa
inc esi
add edi, 0x208
cmp esi, 5
jl 0x4037b5
cmp dword [0x447544], 0x5a
jbe 0x40380d
mov ecx, str.Typing_inside_page..
call fcn.00414a00
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415d2d
mov esp, ebp
pop ebp
ret
imul eax, esi, 0x208
lea ecx, [ebp - 0xa2c]
add ecx, eax
call fcn.00414a00
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00415d2d
mov esp, ebp
pop ebp
ret
Function at 0x403b40
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x445040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x403ca5
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x403c9f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
je 0x403c9f
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403b90
sub ecx, edi
cmp ecx, 0x104
jae 0x403c96
mov ecx, edx
mov dword [ebp - 0xc], esi
xorps xmm0, xmm0
mov dword [ebp - 8], esi
movups xmmword [ebp - 0x1c], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403bb7
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.004015e0
cmp dword [ebp - 8], 0xf
lea edi, [ebp - 0x1c]
mov ebx, dword [ebp - 0x1c]
jbe 0x403bdc
mov edi, ebx
test edi, edi
je 0x403c24
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403be1
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x20], eax
cmp eax, 0x3fffffff
jg 0x403c24
add eax, eax
call fcn.004166a0
mov esi, esp
test esi, esi
je 0x403c24
push dword [ebp - 0x20]
xor eax, eax
push esi
push 0xffffffffffffffff
push edi
push eax
push 3
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, dword [ebp - 0x1c]
neg eax
sbb ecx, ecx
and ecx, esi
jmp 0x403c26
xor ecx, ecx
mov edx, 0x447328
sub edx, ecx
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x403c30
mov ecx, 0x447328
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403c50
sub ecx, edx
xor eax, eax
sar ecx, 1
cmp eax, ecx
mov eax, dword [ebp - 8]
sbb esi, esi
neg esi
cmp eax, 0xf
jbe 0x403c96
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x403c8c
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403cbb
push ecx
push ebx
call fcn.00415d3b
add esp, 8
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, esi
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415d2d
mov esp, ebp
pop ebp
ret
call fcn.0041acb4
int3
Function at 0x403cd0
Capabilities:
Get graphical window text
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x445040]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x445af4], 0
push esi
push edi
je 0x403ed6
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
push esi
mov dword [0x447548], esi
call fcn.004011d0
test eax, eax
jne 0x403d29
push esi
call fcn.00401110
test eax, eax
jne 0x403d29
push esi
call fcn.00401290
test eax, eax
je 0x403ed6
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.ReturnFired
call edi
mov eax, 0x447328
nop dword [eax + eax]
movzx ecx, word [eax]
test cx, cx
je 0x403ed6
cmp ecx, 0x20
jne 0x403d6f
add eax, 2
cmp eax, 0x447530
jl 0x403d40
pop edi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00415d2d
mov esp, ebp
pop ebp
ret
push str.IsRules
call edi
call fcn.004032c0
mov dword [esp + 0xc], eax
call fcn.004035d0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x403e49
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x403e49
xor eax, eax
push 0x206
push eax
mov word [esp + 0x18], ax
lea eax, [esp + 0x1a]
push eax
call fcn.00419170
add esp, 0xc
lea eax, [esp + 0x10]
push 0x104
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x10]
push 0x43fc08
push eax
call fcn.0041713a
add esp, 8
test eax, eax
je 0x403deb
mov esi, 1
jmp 0x403e4b
lea eax, [esp + 0x10]
push 0x43fc0c
push eax
call fcn.0041713a
add esp, 8
test eax, eax
je 0x403e08
mov esi, 1
jmp 0x403e4b
lea eax, [esp + 0x10]
push str.Google_Docs
push eax
call fcn.0041713a
add esp, 8
test eax, eax
je 0x403e25
mov esi, 1
jmp 0x403e4b
lea eax, [esp + 0x10]
push str.Bing
push eax
call fcn.0041713a
add esp, 8
test eax, eax
je 0x403e49
push str.Bingbug
call edi
mov esi, 1
jmp 0x403e4b
xor esi, esi
cmp dword [esp + 0xc], 0
je 0x403e80
mov ecx, 0x447328
call fcn.00414a00
push str.This_is_URL_and_not_a_search_query
call edi
call fcn.004033b0
test eax, eax
jne 0x403e91
pop edi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00415d2d
mov esp, ebp
pop ebp
ret
push str.This_is_a_search_query
call edi
mov ecx, 0x447328
call fcn.00414a00
mov eax, dword [0x447554]
or eax, 2
cmp eax, dword [0x447554]
jne 0x403ea5
test esi, esi
jne 0x403ed6
push dword [0x447530]
push 0
call dword [sym.imp.USER32.dll_KillTimer]
push 0x401350
push 0x64
push 0x591
push 0
mov dword [0x447530], 0
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x447530], eax
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
xor ecx, esp
call fcn.00415d2d
mov esp, ebp
pop ebp
ret
Function at 0x40c1a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x40c1d1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x40c1c0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x4146e0
Capabilities:
Print debug messages
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436c4d
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x445040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x42c], edi
xor eax, eax
mov dword [ebp - 4], 0
push 0x40e
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.00419170
add esp, 0xc
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 7
lea edx, [ebp - 0x420]
cmova ecx, dword [ebp + 8]
sub edx, ecx
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x414750
lea ecx, [ebp - 0x420]
call fcn.00414a00
lea eax, [ebp - 0x420]
mov ecx, edi
push eax
call fcn.00414630
push 0x104
call fcn.00415d9c
add esp, 4
mov dword [ebp - 0x424], 0
mov esi, eax
lea ebx, [edi + 0x48]
mov ecx, ebx
mov dword [ebp - 0x428], esi
push 0
push 0x43f7a6
call fcn.00408a30
lea eax, [ebp - 0x424]
push eax
push 0x104
push esi
push dword [edi + 0x64]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x414855
nop word [eax + eax]
mov edi, dword [ebp - 0x424]
test edi, edi
je 0x41484f
mov edx, dword [ebx + 0x14]
mov eax, edx
mov ecx, dword [ebx + 0x10]
sub eax, ecx
cmp edi, eax
ja 0x414816
lea eax, [edi + ecx]
mov dword [ebx + 0x10], eax
mov eax, ebx
cmp edx, 0xf
jbe 0x4147f7
mov eax, dword [ebx]
push edi
push dword [ebp - 0x428]
lea esi, [eax + ecx]
push esi
call fcn.00417580
mov byte [esi + edi], 0
add esp, 0xc
mov esi, dword [ebp - 0x428]
jmp 0x41482d
push edi
push esi
mov byte [ebp - 0x430], 0
mov ecx, ebx
push dword [ebp - 0x430]
push edi
call fcn.004137c0
mov edi, dword [ebp - 0x42c]
lea eax, [ebp - 0x424]
push eax
push 0x104
push esi
push dword [edi + 0x64]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4147d0
jmp 0x414855
mov edi, dword [ebp - 0x42c]
mov eax, dword [edi + 0x64]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x41486c
push eax
call esi
mov dword [edi + 0x64], 0
mov eax, dword [edi + 0x60]
test eax, eax
je 0x41487d
push eax
call esi
mov dword [edi + 0x60], 0
cmp dword [ebx + 0x14], 0xf
jbe 0x414885
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp + 0x1c]
cmp ecx, 7
jbe 0x4148c2
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4148b8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4148e0
push ecx
push edx
call fcn.00415d3b
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00415d2d
mov esp, ebp
pop ebp
ret 0x18
call fcn.0041acb4
int3
Function at 0x414a00
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x445040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x414a67
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414a20
sub ecx, edx
sar ecx, 1
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x414a67
add ebx, ebx
mov eax, ebx
call fcn.004166a0
mov edi, esp
test edi, edi
je 0x414a67
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push esi
push 0
push 3
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, edi
jmp 0x414a69
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415d2d
mov esp, ebp
pop ebp
ret

Function at 0x4168d3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x416912
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x416912
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x416912
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x416912
cmp dword [ecx + 0x74], 0xe
jbe 0x416912
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x42907d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43bb24
push 0x43bb1c
push str.FlsAlloc
push 0x1f
call fcn.00428ea4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4290b1
push dword [ebp + 8]
mov ecx, esi
call dword [0x437248]
call esi
jmp 0x4290b7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4290fb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43bb34
push 0x43bb2c
push str.FlsGetValue
push 0x21
call fcn.00428ea4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x429132
push dword [ebp + 8]
mov ecx, esi
call dword [0x437248]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42913a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43bb3c
push 0x43bb34
push str.FlsSetValue
push 0x22
call fcn.00428ea4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x429174
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x437248]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x42a8f3
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042a875
Function at 0x42d860
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x445040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x42d8ab
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0042d9fb
test al, al
jne 0x42d8a5
sub edx, 2
cmp edx, edi
jne 0x42d88b
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x42d8cd
lea eax, [edi + 2]
cmp edx, eax
je 0x42d8cd
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0042d7ac
add esp, 0x10
jmp 0x42d9c7
push esi
lea ecx, [ebp - 0x255]
call fcn.0042d9fb
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42d910
push dword [ebp - 0x25c]
jmp 0x42d8bd
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x42d94d
cmp word [ebp - 0x226], 0
je 0x42d96e
cmp word [ebp - 0x226], ax
jne 0x42d94d
cmp word [ebp - 0x224], 0
je 0x42d96e
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0042d7ac
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x42d9ba
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x42d927
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x42d9a2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x42d9c7
push 0x42d5dc
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00433a60
add esp, 0x10
jmp 0x42d997
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415d2d
leave
ret

Function at 0x430619
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042804a
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x430688
cmp esi, dword [ebp - 4]
je 0x430683
cmp dword [ebp + 0xc], 0
je 0x430683
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x430660
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0043016b
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x43068a
xor eax, eax
inc eax
jmp 0x43068a
xor eax, eax
pop edi
pop esi
leave
ret