joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f950
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432ae8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x43b4a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x1c]
push 0x43c750
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040a470
add esp, 8
lea ecx, [ebp - 0x18]
push 0x43c7c8
push ecx
mov byte [ebp - 4], 1
call fcn.0040a470
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [0x43b008]
mov eax, dword [edx + 0xc]
mov ecx, 0x43b008
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
push 0x6a
mov byte [ebp - 4], 3
call fcn.00404960
add esp, 4
cmp eax, ebx
je 0x40f9e1
push eax
lea eax, [ebx + 0x6a]
lea edi, [ebp - 0x14]
call fcn.00404510
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx - 0xc], ebx
je 0x40fa6d
mov edx, dword [ebp - 0x18]
cmp dword [edx - 0xc], ebx
je 0x40fa6d
cmp dword [esi - 0xc], ebx
je 0x40fa6d
xor eax, eax
mov dword [ebp - 0x14], eax
nop
cmp eax, 2
jge 0x40fa6d
xor ecx, ecx
cmp eax, ebx
setne cl
push 2
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
add ecx, 0x80000001
mov dword [ebp - 0x20], ebx
call fcn.0040f8d0
test eax, eax
jne 0x40fa51
mov edi, dword [ebp - 0x18]
cmp esi, ebx
je 0x40fa51
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push ebx
push edi
mov edi, dword [ebp - 0x28]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x40fa54
mov edi, dword [ebp - 0x28]
cmp edi, ebx
je 0x40fa62
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], ebx
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], ebx
jmp 0x40fa00
lea eax, [esi - 0x10]
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fa8d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fab0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fad2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40fdf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push esi
add eax, eax
lea edx, [ebp + 0xc]
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40fe5e
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x40fe2d
cmp eax, 2
jne 0x40fe48
mov eax, dword [ebp - 4]
test esi, esi
je 0x40fe58
test eax, eax
je 0x40fe53
test al, 1
jne 0x40fe48
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x40fe58
mov eax, 0xd
mov esp, ebp
pop ebp
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x41fe44
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43b4a0]
jne 0x41fe4e
repz ret
jmp fcn.004264aa

Function at 0x42ebec
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43b4a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00425d82
and dword [ebp - 0x14], 0
cmp dword [0x4698e0], 0
mov dword [ebp - 0x18], eax
jne 0x42ec9f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x42ed47
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x42ed47
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4698e0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4698e4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4698e8], eax
call edi
push eax
call esi
mov dword [0x4698f0], eax
test eax, eax
je 0x42ec9f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4698ec], eax
mov eax, dword [0x4698ec]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x42ecf8
cmp dword [0x4698f0], ecx
je 0x42ecf8
push eax
call esi
push dword [0x4698f0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x42ecf8
test ebx, ebx
je 0x42ecf8
call edi
test eax, eax
je 0x42ecef
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42ecef
test byte [ebp - 8], 1
jne 0x42ecf8
or dword [ebp + 0x10], 0x200000
jmp 0x42ed2b
mov eax, dword [0x4698e4]
cmp eax, dword [ebp - 0x18]
je 0x42ed2b
push eax
call esi
test eax, eax
je 0x42ed2b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42ed2b
mov eax, dword [0x4698e8]
cmp eax, dword [ebp - 0x18]
je 0x42ed2b
push eax
call esi
test eax, eax
je 0x42ed2b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4698e0]
call esi
test eax, eax
je 0x42ed47
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x42ed49
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fe44
leave
ret
Function at 0x409a8a
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0x14e
jle 0x409ab4
cmp dword [ebp + 8], 0x180
jge 0x409ab4
mov eax, 1
jmp 0x409ab6
xor eax, eax
test eax, eax
je 0x409b0a
cmp dword [ebp + 0xc], 0xc8
jle 0x409adf
cmp dword [ebp + 0xc], 0xd9
jge 0x409adf
mov eax, 1
jmp 0x409ae1
xor eax, eax
test eax, eax
je 0x409b0a
mov eax, 0x453102
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.00409c54
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x409b0a
push ebx
call fcn.0043ba23
add esp, 4
cmp dword [ebp + 8], 0x151
jle 0x409b2b
cmp dword [ebp + 8], 0x180
jge 0x409b2b
mov eax, 1
jmp 0x409b2d
xor eax, eax
test eax, eax
je 0x409b81
cmp dword [ebp + 0xc], 0xe7
jle 0x409b56
cmp dword [ebp + 0xc], 0xf5
jge 0x409b56
mov eax, 1
jmp 0x409b58
xor eax, eax
test eax, eax
je 0x409b81
mov eax, 0x453122
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.00409c54
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x409b81
push ebx
call fcn.0043ba23
add esp, 4
cmp dword [ebp + 8], 0x193
jle 0x409ba2
cmp dword [ebp + 8], 0x1a6
jge 0x409ba2
mov eax, 1
jmp 0x409ba4
xor eax, eax
test eax, eax
je 0x409bdb
cmp dword [ebp + 0xc], 4
jle 0x409bc7
cmp dword [ebp + 0xc], 0x13
jge 0x409bc7
mov eax, 1
jmp 0x409bc9
xor eax, eax
test eax, eax
je 0x409bdb
push 0
call fcn.0043ba0b
add esp, 4
cmp dword [ebp + 8], 0x177
jle 0x409bfc
cmp dword [ebp + 8], 0x18a
jge 0x409bfc
mov eax, 1
jmp 0x409bfe
xor eax, eax
test eax, eax
je 0x409c44
cmp dword [ebp + 0xc], 6
jle 0x409c21
cmp dword [ebp + 0xc], 0x16
jge 0x409c21
mov eax, 1
jmp 0x409c23
xor eax, eax
test eax, eax
je 0x409c44
push 1
push 1
push 0x480c77
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x1a0]
mov eax, 1
jmp 0x409c4e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43ebb0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x43ebce
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x43ebc3
pop esi
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x402ac0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
push eax
push 0x104
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x402b03
push edi
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0xc]
push ecx
call fcn.004038d0
add esp, 8
pop edi
pop esi
add esp, 0x104
ret
mov eax, esi
pop esi
add esp, 0x104
ret

Function at 0x402b10
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x144
push ebx
mov ebx, dword [esp + 0x14c]
push ebp
mov ebp, dword [esp + 0x15c]
push esi
push edi
mov esi, dword [ebp]
mov dword [esp + 0x10], 0
test ebx, ebx
je 0x402b9b
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402b9b
test esi, esi
je 0x402b55
cmp esi, 0xffffffff
je 0x402b55
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp], esi
je 0x402be1
mov eax, dword [esp + 0x160]
test eax, eax
je 0x402b84
mov ecx, dword [esp + 0x14]
and ecx, 0x10
cmp cl, 0x10
je 0x402b9b
jmp 0x402b93
mov edx, dword [esp + 0x15c]
mov eax, dword [esp + 0x14]
test edx, eax
je 0x402b9b
mov dword [esp + 0x10], 1
test esi, esi
je 0x402be1
cmp esi, 0xffffffff
je 0x402be1
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x402c18
mov eax, dword [esp + 0x160]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x14]
push eax
push esi
je 0x402bee
call edi
test eax, eax
je 0x402be1
mov ecx, dword [esp + 0x14]
and ecx, 0x10
cmp cl, 0x10
jne 0x402c18
lea edx, [esp + 0x14]
push edx
push esi
call edi
test eax, eax
jne 0x402bc9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x144
ret
call edi
test eax, eax
je 0x402be1
mov ebx, dword [esp + 0x15c]
test dword [esp + 0x14], ebx
jne 0x402c18
lea ecx, [esp + 0x14]
push ecx
push esi
call edi
test eax, eax
jne 0x402bfb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00402240
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret

Function at 0x408931
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov edx, 0x4085d8
or edi, edi
add edi, 0x336ab3ce
call fcn.00408957
and edi, ebx
xor dword [eax], edx
and ebx, ebx
sub ebx, ebx
inc eax
or edi, edi
cmp eax, ecx
jne fcn.00408931
add edi, ebx
ret
Function at 0x403910
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x473020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4039a8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403988
xor eax, eax
push ebp
push 0x403981
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 0x4039c4
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 0x403988
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x473020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x473020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4047c4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x476044], 0
je 0x404825
cmp word [0x476218], 0xd7b2
jne 0x4047ed
cmp dword [0x476220], 0
jbe 0x4047ed
mov eax, 0x476214
call dword [0x476230]
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 0x40484c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47302c], 0
jne 0x404841
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40608c
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 0x4062bc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40610f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4062bc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40610f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4062d8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406198
xor eax, eax
push ebp
push 0x406191
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405ec8
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 0x406176
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4062f8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406176
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 0x406198
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 0x4062b2
cmp byte [ebp - 0xd], 0
jne 0x4061df
cmp byte [ebp - 0x12], 0
je 0x4062b2
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4061f8
dec ebx
cmp byte [ebx], 0x2e
je 0x406207
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4061f7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4062b2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406244
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 0x4062b2
cmp byte [ebp - 0xd], 0
je 0x4062b2
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 0x4062b2
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
Function at 0x4088b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408902
test eax, edx
je 0x408905
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x4088c5
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4088eb
add ecx, 4
js 0x4088db
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4088e8
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x408911
test edx, edx
jne 0x4088b8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x409204
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x40927f
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call dword [0x4788d0]
mov eax, dword [ebp - 4]
call fcn.00404df4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40923f
test al, 0x10
sete bl
jmp 0x409269
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x409261
cmp ebx, 3
je 0x409261
cmp ebx, 0x7b
je 0x409261
mov eax, dword [ebp - 4]
call fcn.004091c4
test al, al
jne 0x409265
xor eax, eax
jmp 0x409267
mov al, 1
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409286
lea eax, [ebp - 4]
call fcn.00404964
ret

Function at 0x40928c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404df4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4092a5
test al, 0x10
jne 0x4092a9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c1a8
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 pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c1e1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404a54
jmp 0x40c1ea
mov eax, ebx
mov edx, esi
call fcn.004049b8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c1f4
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_1
test eax, eax
jle 0x40c216
movzx eax, byte [esp]
jmp 0x40c218
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40c9f4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c86c
mov eax, dword [0x475ca8]
cmp byte [eax], 0
je 0x40ca70
mov eax, dword [0x475ab8]
call fcn.00403244
call fcn.00402fcc
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409794
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40cab8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40caa6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x475a5c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4787f0]
call fcn.00405e70
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40d330
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d407
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea edx, [ebp - 4]
mov eax, ebx
call dword [0x4788d0]
lea eax, [ebp - 4]
call fcn.00404e4c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404df4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d3f1
mov eax, ebx
call fcn.00402e70
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d3ea
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404df4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d3d4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d418
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d3d4
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d3f1
mov eax, dword [ebp - 0x10]
call fcn.00402e8c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d40e
lea eax, [ebp - 4]
call fcn.00404964
ret

Function at 0x40ee94
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffc00
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00404964
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00404df4
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x40eed9
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00404a54
jmp 0x40eef2
mov edx, ebx
dec edx
mov eax, esi
call fcn.00405084
push ebx
mov eax, dword [esi]
call fcn.00404df4
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
add esp, 0x400
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x423494
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x47a9ec
cmp dword [edi], 0
jne 0x423510
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x47a9e8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x473ad4
mov ecx, 2
call fcn.00403060
mov edx, 0x42346c
lea eax, [esi + 5]
call fcn.0042348c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042348c
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 0x4234e5
mov dword [0x47a9e8], 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 0x427760
Capabilities:
Create http request

Disassembly:
add esp, 0xfffffff8
cmp dword [0x47ba98], 0
jne 0x4277b2
push 0
push 0
push 0
push 0
push 0x4277b8
call sub.wininet.dll_InternetOpenA
mov dword [0x47ba98], eax
cmp dword [0x47ba98], 0
jne 0x4277b2
call sub.kernel32.dll_GetLastError
mov dword [esp], eax
mov byte [esp + 4], 0
push esp
push 0
mov ecx, 0x4277c8
mov dl, 1
mov eax, dword [0x407a98]
call fcn.0040caf8
call fcn.0040438c
pop ecx
pop edx
ret

Function at 0x427a38
Capabilities:
Get http content length

Disassembly:
push ebx
add esp, 0xfffffdf0
mov ebx, eax
mov dword [esp], 0x200
xor eax, eax
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x10]
push eax
push 0x20000005
mov eax, dword [ebx + 4]
push eax
call sub.wininet.dll_HttpQueryInfoA
test eax, eax
jne 0x427aa3
call sub.kernel32.dll_GetLastError
mov dword [esp + 0x208], eax
mov byte [esp + 0x20c], 0
lea eax, [esp + 0x208]
push eax
push 0
mov ecx, 0x427abc
mov dl, 1
mov eax, dword [0x407a98]
call fcn.0040caf8
call fcn.0040438c
lea eax, [esp + 8]
mov eax, dword [eax]
add esp, 0x210
pop ebx
ret