joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48226b
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4b561c]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push esi
mov esi, dword [ebp + 0x98]
cmp dword [esi + 0x8c], 2
mov ebx, dword [esi]
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x80], ebx
je 0x4823b8
cmp dword [esi + 0x1d8], 0
push edi
jne 0x4823b0
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x9c]
mov edi, 0x80
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4822e9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.00484db3
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
jmp 0x482329
push edi
lea eax, [ebp + 0xc]
push 0
push eax
mov dword [ebp - 0x7c], edi
call fcn.0045b9c0
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x9c]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x48232c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.00484db3
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
push ebx
jmp 0x4823a3
lea ebx, [esi + 0xb8]
lea edi, [esi + 0xe8]
lea esi, [ebp - 0x74]
call fcn.00482232
test eax, eax
jne 0x48235e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.00484db3
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
jmp 0x4823a0
mov esi, dword [ebp - 0x78]
push 0x2e
lea eax, [esi + 0x58]
push ebx
push eax
call fcn.0045a430
lea edi, [esi + 0x11c]
lea ebx, [esi + 0xec]
add esp, 0xc
lea esi, [ebp + 0xc]
call fcn.00482232
test eax, eax
jne 0x4823ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.00484db3
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x80]
call fcn.0048033e
add esp, 0x18
jmp 0x4823b7
mov esi, dword [ebp - 0x78]
push esi
call fcn.004821e0
pop ecx
pop edi
mov ecx, dword [ebp + 0x8c]
pop esi
xor ecx, ebp
pop ebx
call fcn.004616ca
add ebp, 0x90
leave
ret

Function at 0x4823cf
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x364]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push 6
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x482414
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00484db3
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004802d4
add esp, 0x14
jmp 0x482421
push str.TCP_NODELAY_set_n
push esi
call fcn.004802d4
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x482424
Capabilities:
Check os version
Set socket configuration

Disassembly:
push ebp
lea ebp, [esp - 0xa4]
sub esp, 0x124
mov eax, dword [0x4b561c]
xor eax, ebp
mov dword [ebp + 0xa0], eax
push esi
push edi
xor eax, eax
cmp dword [0x4baa70], eax
push 2
mov dword [ebp - 0x78], 0x4020
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x80], 4
pop edi
jne 0x482499
mov esi, 0x114
push esi
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0045b9c0
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x74], esi
mov dword [0x4baa70], 1
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x482499
cmp dword [ebp - 0x70], 6
jb 0x482499
mov dword [0x4baa70], edi
cmp dword [0x4baa70], edi
je 0x4824e1
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
mov edi, 0x1001
push edi
mov esi, 0xffff
push esi
push dword [ebp + 0xac]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4824cd
mov eax, dword [ebp - 0x7c]
cmp eax, dword [ebp - 0x78]
jg 0x4824e1
push 4
lea eax, [ebp - 0x78]
push eax
push edi
push esi
push dword [ebp + 0xac]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp + 0xa0]
pop edi
xor ecx, ebp
pop esi
call fcn.004616ca
add ebp, 0xa4
leave
ret

Function at 0x48250e
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x5d0]
xor ebx, ebx
cmp esi, ebx
je 0x48255e
mov eax, dword [edi + 0x44]
cmp eax, ebx
jne 0x482531
cmp dword [edi + 0x40], ebx
je 0x48255e
cmp eax, ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
jne 0x48253e
mov eax, dword [edi + 0x40]
mov eax, dword [eax + 0x34]
push 0x4824f8
lea ecx, [ebp - 8]
push ecx
push eax
call fcn.00488fb4
add esp, 0xc
cmp dword [ebp - 4], ebx
jne 0x482566
mov dword [edi + 0x5d0], ebx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x48256f
mov dword [eax], esi
cmp dword [esi + 0x17c], ebx
mov edi, dword [esi + 0x154]
jne 0x48255e
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x48255e
mov eax, edi
jmp 0x482561
Function at 0x482e24
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
and dword [edi], 0
push dword [ebp + 8]
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x482e9a
cmp word [ebx + 8], 2
jne 0x482e7a
cmp word [ebx + 0xa], 4
jne 0x482e7a
mov esi, dword [ebx + 0xc]
jmp 0x482e74
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00482dbf
test eax, eax
mov dword [edi], eax
je 0x482e95
lea edi, [eax + 0x1c]
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x482e58
push 0x400
push dword [ebx]
push 0x401
push dword [ebp + 0x18]
call fcn.0045fe8e
add esp, 0x10
xor eax, eax
jmp 0x482ec0
push 8
pop eax
jmp 0x482ec0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x482ec0
dec ecx
je 0x482ebb
dec ecx
je 0x482eb4
dec ecx
jmp 0x482ec0
mov eax, 0x2afb
jmp 0x482ec0
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x4834bc
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1b0]
sub esp, 0x230
mov eax, dword [0x4b561c]
xor eax, ebp
mov dword [ebp + 0x1ac], eax
cmp dword [0x4baa74], 0
mov dword [ebp - 0x80], str.getaddrinfo
mov dword [ebp - 0x7c], 0x48307b
mov dword [ebp - 0x78], str.getnameinfo
mov dword [ebp - 0x74], 0x483302
mov dword [ebp - 0x70], str.freeaddrinfo
mov dword [ebp - 0x6c], fcn.00483042
jne 0x483622
push 0x104
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x483618
push ebx
push esi
push edi
lea eax, [ebp - 0x68]
push eax
mov esi, 0x10c
lea eax, [ebp + 0xa0]
push esi
push eax
call fcn.0045fd64
push str.ws2_32
lea eax, [ebp + 0xa0]
push esi
push eax
call fcn.0046fc81
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea eax, [ebp + 0xa0]
push eax
call ebx
mov edi, eax
test edi, edi
je 0x483585
push str.getaddrinfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x483581
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
jne 0x4835d7
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0xa0]
push esi
push eax
call fcn.0045fd64
push str.wship6
lea eax, [ebp + 0xa0]
push esi
push eax
call fcn.0046fc81
add esp, 0x18
lea eax, [ebp + 0xa0]
push eax
call ebx
mov edi, eax
test edi, edi
je 0x483615
push str.getaddrinfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4835d3
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
je 0x483615
xor esi, esi
push dword [ebp + esi*8 - 0x80]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp + esi*8 - 0x7c], eax
je 0x4835f4
inc esi
cmp esi, 3
jl 0x4835d9
jmp 0x4835fd
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
je 0x483615
xor eax, eax
mov ecx, dword [ebp + eax - 0x7c]
mov dword [eax + 0x4b6694], ecx
add eax, 8
cmp eax, 0x18
jl 0x483603
pop edi
pop esi
pop ebx
mov dword [0x4baa74], 1
movzx eax, word [ebp + 0x1b8]
mov ecx, dword [ebp + 0x1ac]
mov eax, dword [eax*8 + 0x4b6694]
xor ecx, ebp
call fcn.004616ca
add ebp, 0x1b0
leave
ret 4
Function at 0x48a468
Capabilities:
Parse pe header

Disassembly:
movsx eax, byte [esp + 4]
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x48a475
jmp dword [eax*4 + 0x48a4d0]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
mov al, byte [esp + 4]
ret

Function at 0x48e1ce
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esi]
cmp dword [eax + 4], 2
push edi
jne 0x48e1f3
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x48e1e2
xor eax, eax
pop edi
ret
push dword [eax + 8]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call ecx
jmp 0x48e226
cmp dword [esi + 8], 0
jne 0x48e214
push 0x4a2720
push dword [eax + 8]
call fcn.0045e349
test eax, eax
pop ecx
pop ecx
mov dword [esi + 8], eax
jne 0x48e214
or eax, 0xffffffff
pop edi
ret
push dword [esi + 8]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0045dda0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x48e246
mov eax, dword [esi + 8]
test eax, eax
je 0x48e240
push eax
call fcn.0045de2d
and dword [esi + 8], edi
pop ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
ret
Function at 0x404970
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
neg eax
sbb eax, eax
add eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x40784c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x44e630]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x407889
push 0x43db10
push 4
push eax
call fcn.00425633
push eax
call fcn.00401200
add esp, 0x10
jmp 0x40789b
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x407906
push edi
call fcn.00425715
mov edi, dword [eax]
call fcn.00425715
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.004256bb
add esp, 0x18
mov ebx, eax
call fcn.00425715
cmp dword [eax], 0
je 0x4078e6
call fcn.00425715
push dword [eax]
call fcn.004077fc
pop ecx
jmp 0x4078ed
call fcn.00425715
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x407906
cmp ebx, esi
jae 0x407906
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x407908
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00421df2
leave
ret
Function at 0x408c33
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x408c79
call fcn.0041206e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x408c79
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x408cbc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x408ca5
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x408ca5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x408cb9
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40a01a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x40a03a
cmp dword [edi + 0x54], 0
jne 0x40a03a
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041206e
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00409fe1
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x40fba1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40fbe4
call fcn.0041206e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40fbe4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40fbff
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040f75b
test ebx, ebx
mov esi, eax
je 0x40fbfd
test edi, edi
je 0x40fbfd
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x421df2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44e630]
jne 0x421dfc
repz ret
jmp fcn.00427d18
Function at 0x426987
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x44e7c0]
je 0x4269a2
inc edi
cmp edi, 0x17
jb 0x426993
cmp edi, 0x17
jae 0x426b22
push ebp
push 3
call fcn.0042f4b4
cmp eax, 1
pop ecx
je 0x426aee
push 3
call fcn.0042f4b4
test eax, eax
pop ecx
jne 0x4269d6
cmp dword [0x44e5f4], 1
je 0x426aee
cmp ebx, 0xfc
je 0x426b21
push 0x441028
mov ebx, 0x314
push ebx
mov ebp, 0x451c18
push ebp
call fcn.004296d5
add esp, 0xc
test eax, eax
je 0x426a0c
push esi
push esi
push esi
push esi
push esi
call fcn.004224c2
add esp, 0x14
push 0x104
mov esi, 0x451c31
push esi
push 0
mov byte [0x451d35], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x426a50
push 0x441010
push 0x2fb
push esi
call fcn.004296d5
add esp, 0xc
test eax, eax
je 0x426a50
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004224c2
add esp, 0x14
push esi
call fcn.00421f40
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x426a95
push esi
call fcn.00421f40
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x451f2c
push 0x44100c
sub ecx, eax
push ecx
push eax
call fcn.0042f401
add esp, 0x14
test eax, eax
je 0x426a95
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004224c2
add esp, 0x14
jmp 0x426a97
xor esi, esi
push 0x441008
push ebx
push ebp
call fcn.0042f390
add esp, 0xc
test eax, eax
je 0x426ab7
push esi
push esi
push esi
push esi
push esi
call fcn.004224c2
add esp, 0x14
push dword [edi*8 + 0x44e7c4]
push ebx
push ebp
call fcn.0042f390
add esp, 0xc
test eax, eax
je 0x426ad9
push esi
push esi
push esi
push esi
push esi
call fcn.004224c2
add esp, 0x14
push 0x12010
push 0x440fe0
push ebp
call fcn.0042f1d3
add esp, 0xc
jmp 0x426b21
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x426b21
cmp ebp, 0xffffffff
je 0x426b21
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x44e7c4]
push dword [esi]
call fcn.00421f40
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x42f1d3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042754b
xor ebx, ebx
cmp dword [0x45271c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x42f2a9
push 0x4412e4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42f389
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4412d8
push edi
call esi
cmp eax, ebx
je 0x42f389
push eax
call fcn.004274dd
mov dword [esp], 0x4412c8
push edi
mov dword [0x45271c], eax
call esi
push eax
call fcn.004274dd
mov dword [esp], 0x4412b4
push edi
mov dword [0x452720], eax
call esi
push eax
call fcn.004274dd
mov dword [0x452724], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004253c0
test eax, eax
pop ecx
pop ecx
je 0x42f277
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004224c2
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x42f2a9
push 0x441298
push edi
call esi
push eax
call fcn.004274dd
cmp eax, ebx
pop ecx
mov dword [0x45272c], eax
je 0x42f2a9
push 0x441280
push edi
call esi
push eax
call fcn.004274dd
pop ecx
mov dword [0x452728], eax
mov eax, dword [0x452728]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x42f32e
cmp dword [0x45272c], ecx
je 0x42f32e
push eax
call fcn.00427554
push dword [0x45272c]
mov esi, eax
call fcn.00427554
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x42f32e
cmp edi, ebx
je 0x42f32e
call esi
cmp eax, ebx
je 0x42f2fb
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42f2fb
test byte [ebp - 0x18], 1
jne 0x42f32e
lea eax, [ebp - 0x10]
push eax
call fcn.004253f7
test eax, eax
pop ecx
je 0x42f316
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004224c2
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x42f325
or dword [ebp + 0x10], 0x200000
jmp 0x42f369
or dword [ebp + 0x10], 0x40000
jmp 0x42f369
mov eax, dword [0x452720]
cmp eax, dword [ebp - 8]
je 0x42f369
push eax
call fcn.00427554
cmp eax, ebx
pop ecx
je 0x42f369
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42f369
mov eax, dword [0x452724]
cmp eax, dword [ebp - 8]
je 0x42f369
push eax
call fcn.00427554
cmp eax, ebx
pop ecx
je 0x42f369
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45271c]
call fcn.00427554
cmp eax, ebx
pop ecx
je 0x42f389
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42f38b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x436804
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x44e630]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00436799
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00422890
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x436853
cmp dword [ebp - 0x1c], 5
jb 0x43686b
jmp 0x436867
cmp dword [ebp - 0x10], 1
jne 0x43686b
cmp dword [ebp - 0x1c], 4
ja 0x436867
jne 0x43686b
cmp dword [ebp - 0x18], 0
jbe 0x43686b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x442c60
call fcn.0043668a
test eax, eax
jge 0x43688c
mov byte [0x4527fd], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00421df2
add ebp, 0x78
leave
ret

Function at 0x436c50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43bbbb
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x44e630]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00406190
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x436c8a
xor eax, eax
jmp 0x436d5b
mov eax, dword [ebp + 0x10]
push eax
movzx ecx, word [ebp + 8]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x436cbe
xor eax, eax
jmp 0x436d5b
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x436cd8
xor eax, eax
jmp 0x436d5b
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x2c]
call fcn.0041264c
mov dword [ebp - 4], 0
push 0
push 0x9001
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00412aba
test eax, eax
jne 0x436d2a
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00412748
mov eax, dword [ebp - 0x34]
jmp 0x436d5b
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0041239a
lea ecx, [ebp - 0x2c]
call fcn.004125ea
mov dword [ebp - 0x38], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00412748
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x436f30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43bd50
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x44e630]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x224], 0
mov eax, dword [0x452810]
and eax, 1
jne 0x436f95
mov ecx, dword [0x452810]
or ecx, 1
mov dword [0x452810], ecx
mov ecx, 0x45280c
call fcn.00401c70
push 0x43c750
call fcn.00421f25
add esp, 4
mov ecx, 0x45280c
call fcn.00401e90
test eax, eax
jle 0x436fc7
push 0x45280c
mov ecx, dword [ebp + 8]
call fcn.00401c90
mov edx, dword [ebp - 0x224]
or edx, 1
mov dword [ebp - 0x224], edx
mov eax, dword [ebp + 8]
jmp 0x437090
lea ecx, [ebp - 0x220]
call fcn.00401c70
mov dword [ebp - 4], 0
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x437022
push 0x45280c
mov ecx, dword [ebp + 8]
call fcn.00401c90
mov ecx, dword [ebp - 0x224]
or ecx, 1
mov dword [ebp - 0x224], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.004011a0
mov eax, dword [ebp + 8]
jmp 0x437090
lea edx, [ebp - 0x21c]
push edx
mov ecx, 0x45280c
call fcn.00401d30
mov ecx, 0x45280c
call fcn.00401e90
sub eax, 1
push eax
mov ecx, 0x45280c
call fcn.004065e0
movzx eax, ax
cmp eax, 0x5c
je 0x43705f
push 0x5c
mov ecx, 0x45280c
call fcn.00401d90
push 0x45280c
mov ecx, dword [ebp + 8]
call fcn.00401c90
mov ecx, dword [ebp - 0x224]
or ecx, 1
mov dword [ebp - 0x224], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.004011a0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421df2
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43be1c
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x44e630]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401cb0
mov dword [ebp - 4], 0
push 7
push str.file:__
mov ecx, dword [ebp + 8]
push ecx
call fcn.004230b5
add esp, 0xc
test eax, eax
jne 0x43730e
mov edx, dword [ebp + 8]
add edx, 0xe
push edx
lea ecx, [ebp - 0x14]
call fcn.00401d30
lea ecx, [ebp - 0x14]
call fcn.00401df0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x437343
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004011a0
mov eax, dword [ebp - 0x18]
jmp 0x43736d
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004011a0
mov eax, dword [ebp - 0x1c]
jmp 0x43736d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret