joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427ba2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x10c
mov eax, 0x46a0d5
call fcn.00440d4a
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x68], eax
call fcn.00427aeb
mov ebx, eax
test ebx, ebx
je 0x427c8f
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
push dword [esi + 0x38]
call edi
test eax, eax
jne 0x427c45
push str.cannot_load_resource
lea ecx, [ebp - 0x28]
call fcn.00402f72
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call fcn.00427b09
push eax
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 5
call fcn.0041944a
push str.System_error
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x80]
call fcn.0042cd83
mov esi, eax
push 0x46
push str.Resource::getPtr
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x74]
push str.c:_jenkins_workspace_8_2_build_windows_x64_cygwin_sans_NAS_jdk8u381_237_install_src_windows_common_Resources.cpp
jmp 0x427cf9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp dword [esi + 0x34], 6
mov edi, eax
jne 0x427c76
mov edx, dword [esi + 0x18]
mov ecx, edi
and edx, 0xf
jbe 0x427c6c
movzx eax, word [ecx]
lea ecx, [ecx + eax*2]
add ecx, 2
sub edx, 1
jne 0x427c5e
movzx eax, word [ecx]
lea edi, [ecx + 2]
add eax, eax
jmp 0x427c80
push ebx
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x68]
mov dword [ecx], eax
mov eax, edi
call fcn.00440cf9
ret 4
push str.cannot_find_resource
lea ecx, [ebp - 0x28]
call fcn.00402f72
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call fcn.00427b09
push eax
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.0041944a
push str.System_error
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [sym.imp.KERNEL32.dll_FindResourceA]
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x74]
call fcn.0042cd83
mov esi, eax
push 0x41
push str.Resource::getPtr
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x80]
push str.c:_jenkins_workspace_8_2_build_windows_x64_cygwin_sans_NAS_jdk8u381_237_install_src_windows_common_Resources.cpp
call fcn.004030f3
push eax
lea eax, [ebp - 0x4c]
push esi
push eax
call fcn.0041a246
add esp, 0xc
lea eax, [ebp - 0x4c]
push 0x48bb40
push eax
call fcn.00442acd
int3
Function at 0x428963
Capabilities:
Check http status code

Disassembly:
push 0x80
mov eax, 0x46a250
call fcn.00440d4a
mov edi, ecx
push 0xffffffffffffffff
push 0x13
call fcn.0042a428
mov esi, eax
cmp esi, 0xc8
je 0x428a2d
cmp esi, 0xce
je 0x428a2d
cmp esi, 0x193
jne 0x4289ec
push 0x46fb0e
lea ecx, [ebp - 0x28]
call fcn.00402f72
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
push 0x14
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.0042a78a
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004083fa
push 0
push str.Export_Denied
lea ecx, [ebp - 0x40]
call fcn.0041c6e3
cmp eax, 0xffffffff
jne 0x428a33
or dword [ebp - 4], eax
lea ecx, [ebp - 0x40]
call fcn.0040365f
push esi
lea ecx, [ebp - 0x8c]
call fcn.004285eb
mov esi, eax
push 0x2ce
push str.HttpConnection::Response::checkStatus
push str.c:_jenkins_workspace_8_2_build_windows_x64_cygwin_sans_NAS_jdk8u381_237_install_src_windows_common_NetUtils.cpp
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 4
call fcn.004030f3
push eax
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.00428050
add esp, 0xc
push 0x48e338
jmp 0x428a6e
call fcn.00440cf9
ret
lea ecx, [ebp - 0x8c]
call fcn.004285ad
mov esi, eax
push 0x2cb
push str.HttpConnection::Response::checkStatus
push str.c:_jenkins_workspace_8_2_build_windows_x64_cygwin_sans_NAS_jdk8u381_237_install_src_windows_common_NetUtils.cpp
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 3
call fcn.004030f3
push eax
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.00428039
add esp, 0xc
push 0x48e398
lea eax, [ebp - 0x6c]
push eax
call fcn.00442acd
int3
Function at 0x4296ca
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x494244]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x58]
push edi
mov edi, dword [ebp + 8]
push 0x3c
pop ebx
push ebx
push 0
push eax
call fcn.00442680
mov dword [ebp - 0x58], ebx
add esp, 0xc
xor ebx, ebx
inc ebx
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x44], ebx
jb 0x429706
mov edi, dword [edi]
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x42971d
xor al, al
jmp 0x42975b
mov eax, dword [ebp - 0x4c]
push 3
pop ecx
sub eax, ecx
je 0x429734
sub eax, 1
je 0x429730
mov dword [esi], ebx
jmp 0x42973a
mov dword [esi], ecx
jmp 0x42973a
mov dword [esi], 2
push dword [ebp - 0x44]
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x48]
call fcn.00402f9f
push eax
lea ecx, [esi + 4]
call fcn.0040c452
lea ecx, [ebp - 0x1c]
call fcn.004083fa
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00440cd7
leave
ret
Function at 0x42ade4
Capabilities:
Read data from internet
Receive data

Disassembly:
push 0x6c
mov eax, 0x46a8d7
call fcn.00440d4a
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x58]
and dword [ebp - 0x58], 0
push edx
push dword [ebp + 0xc]
push eax
push dword [ecx + 0x10]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x42ae17
mov eax, dword [ebp - 0x58]
call fcn.00440cf9
ret 8
push str.InternetReadFile_failed
lea ecx, [ebp - 0x28]
call fcn.00402f72
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x2c9
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x78]
call fcn.0042866d
mov esi, eax
push 0x2eb
push str.HttpConnection::Response::readContent
push str.c:_jenkins_workspace_8_2_build_windows_x64_cygwin_sans_NAS_jdk8u381_237_install_src_windows_common_NetUtils.cpp
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.004030f3
push eax
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.00428067
add esp, 0xc
lea eax, [ebp - 0x54]
push 0x48e21c
push eax
call fcn.00442acd
int3

Function at 0x42b40b
Capabilities:
Identify system language via api

Disassembly:
push 4
mov eax, 0x46a9c5
call fcn.00440d17
xor eax, eax
mov dword [ebp - 0x10], eax
mov esi, dword [ebp + 8]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
push eax
push esi
call fcn.0042b4ff
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
push eax
push esi
call fcn.0042b4ff
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ecx, ax
push ecx
push esi
call fcn.0042b4ff
push 0x409
push esi
call fcn.0042b4ff
add esp, 0x10
mov eax, esi
call fcn.00440ce5
ret
Function at 0x42c5c9
Capabilities:
Get file version info

Disassembly:
push 0xe8
mov eax, 0x46ac01
call fcn.00440d4a
mov esi, ecx
mov dword [ebp - 0x3c], esi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x44], esi
push eax
mov dword [esi], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call fcn.00407fcc
lea edi, [esi + 0x18]
mov dword [ebp - 4], ebx
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
cmp dword [esi + 0x14], 0x10
mov eax, esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x3c], ebx
jb 0x42c612
mov eax, dword [esi]
lea ecx, [ebp - 0x3c]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
je 0x42c6d8
lea ecx, [ebp - 0x35]
push ecx
push eax
mov ecx, edi
call fcn.004169a1
mov eax, dword [edi + 4]
mov ecx, esi
sub eax, dword [edi]
cmp dword [esi + 0x14], 0x10
jb 0x42c63f
mov ecx, dword [esi]
push dword [edi]
push eax
push dword [ebp - 0x3c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x42c6ce
push 0x487
push str.VersionResource::VersionResource
push str.c:_jenkins_workspace_8_2_build_windows_x64_cygwin_sans_NAS_jdk8u381_237_install_src_windows_common_FileUtils.cpp
lea ecx, [ebp - 0x5c]
call fcn.004030f3
push eax
push str.System_error
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push sub.VERSION.dll_GetFileVersionInfoA
push 0x472a2c
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x40], esp
push esi
call fcn.00402f56
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 6
call fcn.00403265
mov byte [ebp - 4], 7
push str.GetFileVersionInfo_
mov ecx, eax
call fcn.004027c0
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.0040ae4d
mov ecx, eax
call fcn.004027c0
push eax
lea ecx, [ebp - 0x50]
call fcn.0042cd83
mov byte [ebp - 4], 9
jmp 0x42c752
mov eax, esi
call fcn.00440cf9
ret 4
push 0x47e
push str.VersionResource::VersionResource
push str.c:_jenkins_workspace_8_2_build_windows_x64_cygwin_sans_NAS_jdk8u381_237_install_src_windows_common_FileUtils.cpp
lea ecx, [ebp - 0x50]
call fcn.004030f3
push eax
push str.System_error
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push sub.VERSION.dll_GetFileVersionInfoSizeA
push 0x472a2c
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x40], esp
push esi
call fcn.00402f56
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 2
call fcn.00403265
mov byte [ebp - 4], 3
push str.GetFileVersionInfoSize_
mov ecx, eax
call fcn.004027c0
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.0040ae4d
mov ecx, eax
call fcn.004027c0
push eax
lea ecx, [ebp - 0x5c]
call fcn.0042cd83
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0041a246
add esp, 0xc
lea eax, [ebp - 0x34]
push 0x48bb40
push eax
call fcn.00442acd
int3

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

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x14], 0x10
jb 0x42cc3a
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42cc4d
test al, 0x10
je 0x42cc4d
mov al, 1
ret
xor al, al
ret
Function at 0x42cc50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x14], 0x10
jb 0x42cc5c
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
ret
Function at 0x42f98f
Capabilities:
Check mutex on windows

Disassembly:
push 0xa0
mov eax, 0x46b589
call fcn.00440d17
push str.Global_MSIExecute
xor ebx, ebx
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov esi, eax
mov byte [ebp - 0x10], 1
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], ebx
test esi, esi
je 0x42fa4f
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
cmp dword [ebp + 8], ebx
je 0x42fa47
push 1
call fcn.004185e3
mov ecx, eax
call fcn.0041879e
test al, al
je 0x42fa47
push 1
lea ecx, [ebp - 0xac]
call fcn.00402e8f
lea eax, [ebp - 0xac]
mov byte [ebp - 4], 1
push str.finish_waiting_for_mutex:
push eax
call fcn.004027d5
pop ecx
pop ecx
push edi
lea ecx, [ebp - 0xac]
call fcn.0040c4b8
lea eax, [ebp - 0xac]
push eax
push str.msi::waitForInstallationCompletion
push 0x1c8
push str.c:_jenkins_workspace_8_2_build_windows_x64_cygwin_sans_NAS_jdk8u381_237_install_src_windows_common_MsiUtils.cpp
push 1
call fcn.004185e3
mov ecx, eax
call fcn.0040f39a
lea ecx, [ebp - 0xac]
call fcn.00403981
cmp edi, 0x102
je 0x42fa51
mov bl, 1
push esi
mov dword [ebp - 4], 3
call fcn.0042d300
pop ecx
mov al, bl
call fcn.00440ce5
ret
Function at 0x4323ba
Capabilities:
Write file on windows

Disassembly:
push 0xd4
mov eax, 0x46bda3
call fcn.00440d4a
mov esi, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0xe0]
xor ebx, ebx
call fcn.00438eae
push dword [esi + 4]
lea eax, [ebp - 0xe0]
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x30], 1
mov dword [ebp - 0x2c], eax
call fcn.00437a06
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xd4]
call fcn.00408ea9
push edi
mov byte [ebp - 4], 1
call fcn.004388b4
pop ecx
cmp dword [ebp - 0x18], ebx
jne 0x43242b
mov esi, 0x4719bc
push esi
call fcn.00446680
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.004084d7
push 0x47b3f0
push 0x4762ac
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.00438b80
add esp, 0x10
mov cl, byte [eax + 4]
mov edx, dword [eax]
mov byte [eax + 4], bl
mov dword [ebp - 0x38], edx
mov byte [ebp - 0x34], cl
cmp byte [ebp - 0x3c], 0
mov byte [ebp - 4], 3
je 0x432469
push dword [ebp - 0x40]
mov byte [ebp - 0x3c], bl
call fcn.004655d1
mov edx, dword [ebp - 0x38]
pop ecx
mov byte [ebp - 4], 2
test edx, edx
jne 0x4324e4
lea eax, [ebp - 0x30]
push edi
push eax
call fcn.00438872
pop ecx
pop ecx
mov bl, byte [eax + 4]
mov esi, dword [eax]
mov byte [eax + 4], 0
mov dword [ebp - 0x40], esi
mov byte [ebp - 0x3c], bl
cmp byte [ebp - 0x2c], 0
mov byte [ebp - 4], 5
je 0x4324a3
push dword [ebp - 0x30]
mov byte [ebp - 0x2c], 0
call fcn.004655c5
pop ecx
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0x132
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push dword [ebp - 0x18]
mov byte [ebp - 4], 4
push eax
push esi
call fcn.0044c9ec
add esp, 0xc
push eax
call fcn.00432075
add esp, 0xc
mov byte [ebp - 4], 6
test bl, bl
je 0x43255d
push esi
call fcn.004655c5
jmp 0x43255c
lea eax, [ebp - 0x38]
push eax
push 0x4762b0
lea eax, [ebp - 0x30]
push edi
push eax
call fcn.00438bb5
add esp, 0x10
mov bl, byte [eax + 4]
mov esi, dword [eax]
mov byte [eax + 4], 0
mov dword [ebp - 0x40], esi
mov byte [ebp - 0x3c], bl
cmp byte [ebp - 0x2c], 0
mov byte [ebp - 4], 9
je 0x432520
push dword [ebp - 0x30]
mov byte [ebp - 0x2c], 0
call fcn.004655d1
pop ecx
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push 1
push dword [ebp - 0x18]
mov byte [ebp - 4], 8
push eax
call fcn.0044b1c4
push dword [ebp - 0x34]
push 0x132
push eax
push 1
call fcn.00432028
add esp, 0x20
mov byte [ebp - 4], 0xa
test bl, bl
je 0x43255d
push esi
call fcn.004655d1
pop ecx
cmp byte [ebp - 0x34], 0
mov byte [ebp - 4], 0xb
je 0x432574
push dword [ebp - 0x38]
mov byte [ebp - 0x34], 0
call fcn.004655d1
pop ecx
lea ecx, [ebp - 0x28]
call fcn.004083fa
lea ecx, [ebp - 0xd8]
call fcn.00403981
call fcn.00440cf9
ret 4

Function at 0x43823a
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
add eax, 0x18
cmp dword [eax + 0x14], 8
jb 0x438249
mov eax, dword [eax]
push eax
call fcn.0045160a
pop ecx
ret
Function at 0x43936b
Capabilities:
Read file on windows

Disassembly:
push 0x2c
mov eax, 0x46cdfe
call fcn.00440d17
push 0x476d24
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
xor ebx, ebx
push eax
call fcn.00438b3b
add esp, 0xc
mov cl, byte [eax + 4]
mov edi, dword [eax]
mov byte [ebp - 0xd], cl
mov byte [eax + 4], bl
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x14], cl
xor esi, esi
inc esi
mov dword [ebp - 4], esi
cmp byte [ebp - 0x1c], bl
je 0x4393b5
push dword [ebp - 0x20]
mov byte [ebp - 0x1c], bl
call fcn.004655d1
pop ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0xe]
mov byte [ebp - 4], 2
push eax
push 0x100001
lea ecx, [ebp - 0x24]
call fcn.004169a1
push edi
push 0x100000
push esi
mov esi, dword [ebp - 0x24]
push esi
call fcn.0044ab3d
mov ebx, eax
add esp, 0x10
cmp ebx, 0x100000
ja 0x439486
push edi
call fcn.00452884
pop ecx
test eax, eax
je 0x439409
push 0x133
jmp 0x43948b
push edi
call fcn.00452858
pop ecx
test eax, eax
jne 0x43941b
push 0x13b
jmp 0x43948b
push ebx
push esi
call fcn.00439bf2
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xe]
push eax
lea eax, [esi + ebx]
push eax
push esi
call fcn.00416972
test esi, esi
je 0x439469
mov eax, dword [ebp - 0x1c]
sub eax, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], eax
cmp eax, 0x1000
jb 0x439460
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00407ee8
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
pop ecx
pop ecx
push eax
push esi
call fcn.0044086d
pop ecx
pop ecx
cmp byte [ebp - 0xd], 0
mov dword [ebp - 4], 3
je 0x43947d
push edi
call fcn.004655d1
pop ecx
mov eax, dword [ebp + 8]
call fcn.00440ce5
ret
push 0xc8
lea ecx, [ebp - 0x38]
call fcn.0041050f
push 0x48a0b0
lea eax, [ebp - 0x38]
push eax
call fcn.00442acd
int3

Function at 0x439c2d
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x23c]
sub esp, 0x23c
push 0xffffffffffffffff
push 0x46cf71
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, dword [0x494244]
xor eax, ebp
mov dword [ebp + 0x238], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x244]
lea eax, [ebp + 0x30]
push eax
xor edi, edi
mov dword [ebp - 0x10], esi
push edi
push edi
push 0x2c
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push dword [ebp - 0x10]
push 0xc8
push eax
push edi
call fcn.00432028
add esp, 0x10
lea eax, [ebp + 0x30]
lea ecx, [ebp]
push eax
call fcn.004182ae
push dword [0x4941e0]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.0042d884
push eax
push esi
mov byte [ebp - 4], 1
call fcn.00438251
add esp, 0x14
lea ecx, [ebp + 0x18]
call fcn.00408420
lea ecx, [ebp]
call fcn.00408420
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x238]
xor ecx, ebp
call fcn.00440cd7
add ebp, 0x23c
leave
ret
Function at 0x43bf76
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x43bf89
xor eax, eax
jmp 0x43c02c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0x78]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
jmp 0x43bfc8
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x18]
jae 0x43c02a
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0043bf26
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x43c028
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x43c02c
jmp 0x43bfbf
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x43cb0d
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ebp, SysReAllocString
push edi
mov edi, dword [esp + 0x24]
test edi, edi
jl 0x43cb91
jg 0x43cb3a
test esi, esi
je 0x43cb91
test edi, edi
jg 0x43cb3a
jl 0x43cb36
cmp esi, ebp
jae 0x43cb3a
mov eax, esi
jmp 0x43cb3c
mov eax, ebp
and dword [esp + 0x1c], 0
cmp dword [esp + 0x14], 0xffffffff
je 0x43cb82
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
push ebx
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43cb6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x43cb8c
jmp 0x43cb82
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x43cb7d
add ebx, eax
cdq
sub esi, eax
sbb edi, edx
jmp 0x43cb22
cmp eax, 0xffffffff
jne 0x43cb8c
call fcn.004460a9
cmp dword [eax], 4
je 0x43cb22
or eax, 0xffffffff
jmp 0x43cb93
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x43ebc9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
push 4
pop edx
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x477d90]
sub edx, 1
jne 0x43ebd0
ret

Function at 0x441805
Capabilities:
Parse pe header

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

Function at 0x459130
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00458fa6

Function at 0x45f5b7
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045f234

Function at 0x465700
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x46572d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x46572d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4062e5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b508
cmp edx, dword [eax]
je 0x406307
add eax, 8
inc ecx
cmp eax, 0x40b598
jl 0x4062f8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b508]
jne 0x406435
mov eax, dword [0x40ba54]
cmp eax, 1
je 0x40640f
test eax, eax
jne 0x406338
cmp dword [0x40b1b4], 1
je 0x40640f
cmp edx, 0xfc
je 0x406435
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40636f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004037b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004038a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4063b2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004038a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40957c
push edi
call fcn.004077b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004037b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004037c0
lea eax, [ebp - 0xa0]
push 0x40955c
push eax
call fcn.004037c0
push dword [esi + 0x40b50c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004037c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407726
add esp, 0x2c
pop edi
jmp 0x406435
lea eax, [ebp + 8]
lea esi, [esi + 0x40b50c]
push 0
push eax
push dword [esi]
call fcn.004038a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0xdb2e64
Capabilities:
Encode data using xor

Disassembly:
jmp 0xdb2e6e
pushal
call 0xdb2e74
pop ebp
sub ebp, 0x10
sub ebp, 0x9b2e64
jmp 0xdb2e8a
mov eax, 0x9b2e64
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c3
mov edx, 0x5c3dac05
xor byte [eax], dl
inc eax
dec ecx
jne 0xdb2ea1
jmp 0xdb2eb4
mov cs, eax
mov cs, word [ecx + edi - 0x7bfafafb]
invalid