joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e63e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x43e677
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0043e601
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0042a900
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x440198
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 0x4401db
call fcn.0043a20e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4401db
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4401f6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0043fd4f
test ebx, ebx
mov esi, eax
je 0x4401f4
test edi, edi
je 0x4401f4
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x442f23
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x468847
call fcn.0044fb3e
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0043a20e
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x442f6e
call fcn.0043a20e
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x442f7f
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x442f8c
or eax, 0xffffffff
jmp 0x4430e8
mov ecx, esi
call fcn.00442a6a
mov dword [ebp - 0x14], eax
call fcn.0043d609
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x44300a
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x44300a
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x44300a
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0043c14d
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x44300a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x44300a
mov ecx, ebx
call fcn.0043ad38
test eax, eax
je 0x44300a
push 0
mov ecx, ebx
call fcn.0043ad53
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0043f07b
push dword [ebp - 0x14]
call fcn.0043d561
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00442d2b
xor edi, edi
cmp eax, edi
je 0x443067
test byte [esi + 0x3c], 0x10
je 0x443051
push 4
pop edi
mov ecx, esi
call fcn.0043abf5
test ax, 0x100
je 0x443047
push 5
pop edi
push edi
mov ecx, esi
call fcn.0043d129
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x443067
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0043adba
or dword [ebp - 4], 0xffffffff
jmp 0x443092
cmp dword [ebp - 0x28], edi
je 0x4430a0
push 1
mov ecx, ebx
call fcn.0043ad53
cmp dword [ebp - 0x2c], edi
je 0x4430b0
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4430c9
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x4430c9
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00442aa4
cmp dword [esi + 0x58], edi
je 0x4430e5
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0044fbe3
ret
Function at 0x443549
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x443552
xor eax, eax
jmp 0x4435bb
cmp dword [esp + 8], 0
jne 0x44355e
call fcn.00439853
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.0044f44f
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x443599
push dword [esi + 0x10]
call fcn.00451bc4
test eax, eax
pop ecx
jne 0x443599
mov esi, dword [esi + 0xc]
call fcn.0044fcbd
push esi
push dword [eax]
push 1
call fcn.0044b872
push dword [esi + 0x10]
call fcn.00451bf3
test eax, eax
pop ecx
je 0x4435b8
push dword [esi + 0x10]
call fcn.00451b18
push eax
call fcn.00403290
pop ecx
pop ecx
jmp 0x443587
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x4435c4
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x4435ce
call fcn.00439853
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0044f5c9
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x4435fb
mov esi, dword [esi + 0xc]
call fcn.0044fcbd
push esi
push dword [eax]
push 1
call fcn.0044b872
pop esi
ret 8

Function at 0x4475a9
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4844a0]
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 - 0x11c]
jne 0x4475e9
push 0x475a18
push 4
push eax
call fcn.0045216f
push eax
call fcn.00403290
add esp, 0x10
jmp 0x4475fb
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x447669
push edi
call fcn.0044fcaa
mov edi, dword [eax]
call fcn.0044fcaa
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0044d6a0
add esp, 0x18
mov ebx, eax
call fcn.0044fcaa
cmp dword [eax], 0
je 0x447649
call fcn.0044fcaa
push dword [eax]
call fcn.0043944f
pop ecx
jmp 0x447650
call fcn.0044fcaa
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x447669
cmp ebx, esi
jae 0x447669
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x44766b
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044cb81
leave
ret
Function at 0x4494bf
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4494ed
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x44950b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00449429
jmp 0x44950b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x44950b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00449429
test edi, edi
mov eax, edi
jne 0x4494f5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x48fac0]
test ecx, ecx
je 0x4495ce
jmp 0x4494be
ret 8

Function at 0x44cb81
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4844a0]
jne 0x44cb8b
repz ret
jmp fcn.00455e55
Function at 0x44f1b3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x44f1f0
cmp dword [ebp + 0x14], edi
je 0x44f1f0
cmp ecx, edi
jne 0x44f1f7
call fcn.0044fcaa
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0044e2c9
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x44f20b
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x44f22c
cmp ebx, 0xffffffff
je 0x44f21b
push ebx
push edi
push ecx
call fcn.0044cb90
add esp, 0xc
cmp esi, edi
je 0x44f1d8
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x44f1d8
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x44f248
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x44f24f
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x44f340
test word [esi + 0xc], 0x10c
je 0x44f2a3
mov eax, dword [esi + 4]
test eax, eax
je 0x44f2a3
jl 0x44f3a1
cmp ebx, eax
mov edi, ebx
jb 0x44f274
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x44f348
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0044caab
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x44f338
cmp ebx, dword [ebp - 0xc]
jb 0x44f310
cmp dword [ebp - 0xc], 0
je 0x44f2cd
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x44f2c2
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x44f2c9
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x44f2d8
mov eax, SysReAllocString
cmp ebx, eax
ja 0x44f2d8
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x44f374
push eax
push dword [ebp - 8]
push esi
call fcn.00451965
pop ecx
push eax
call fcn.0045abe6
add esp, 0xc
test eax, eax
je 0x44f3b3
cmp eax, 0xffffffff
je 0x44f3a1
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x44f338
push esi
call fcn.0045a505
cmp eax, 0xffffffff
pop ecx
je 0x44f3a5
cmp dword [ebp - 4], 0
je 0x44f374
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x44f257
mov eax, dword [ebp + 0x14]
jmp 0x44f1f2
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x44f35f
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0044cb90
add esp, 0xc
call fcn.0044fcaa
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x44f1e8
cmp dword [ebp + 0xc], 0xffffffff
je 0x44f38a
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0044cb90
add esp, 0xc
call fcn.0044fcaa
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x44f1e8
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x44f1f2
or dword [esi + 0xc], 0x10
jmp 0x44f3a5
Function at 0x458f24
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 + 0x484e20]
je 0x458f3f
inc edi
cmp edi, 0x17
jb 0x458f30
cmp edi, 0x17
jae 0x4590bf
push ebp
push 3
call fcn.0045f10f
cmp eax, 1
pop ecx
je 0x45908b
push 3
call fcn.0045f10f
test eax, eax
pop ecx
jne 0x458f73
cmp dword [0x4844d0], 1
je 0x45908b
cmp ebx, 0xfc
je 0x4590be
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x490250
push ebp
call fcn.0045216f
add esp, 0xc
test eax, eax
je 0x458fa9
push esi
push esi
push esi
push esi
push esi
call fcn.0044e1cd
add esp, 0x14
push 0x104
mov esi, 0x490269
push esi
push 0
mov byte [0x49036d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x458fed
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0045216f
add esp, 0xc
test eax, eax
je 0x458fed
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0044e1cd
add esp, 0x14
push esi
call fcn.0044fa80
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x459032
push esi
call fcn.0044fa80
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x490564
push 0x47661c
sub ecx, eax
push ecx
push eax
call fcn.0044fcf9
add esp, 0x14
test eax, eax
je 0x459032
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0044e1cd
add esp, 0x14
jmp 0x459034
xor esi, esi
push 0x476618
push ebx
push ebp
call fcn.00452c43
add esp, 0xc
test eax, eax
je 0x459054
push esi
push esi
push esi
push esi
push esi
call fcn.0044e1cd
add esp, 0x14
push dword [edi*8 + 0x484e24]
push ebx
push ebp
call fcn.00452c43
add esp, 0xc
test eax, eax
je 0x459076
push esi
push esi
push esi
push esi
push esi
call fcn.0044e1cd
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0045ef52
add esp, 0xc
jmp 0x4590be
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4590be
cmp ebp, 0xffffffff
je 0x4590be
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x484e24]
push dword [esi]
call fcn.0044fa80
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 0x45ef52
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004549d3
xor ebx, ebx
cmp dword [0x4907bc], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x45f028
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x45f108
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x477778
push edi
call esi
cmp eax, ebx
je 0x45f108
push eax
call fcn.00454965
mov dword [esp], 0x477768
push edi
mov dword [0x4907bc], eax
call esi
push eax
call fcn.00454965
mov dword [esp], 0x477754
push edi
mov dword [0x4907c0], eax
call esi
push eax
call fcn.00454965
mov dword [0x4907c4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00452949
test eax, eax
pop ecx
pop ecx
je 0x45eff6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0044e1cd
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x45f028
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00454965
cmp eax, ebx
pop ecx
mov dword [0x4907cc], eax
je 0x45f028
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00454965
pop ecx
mov dword [0x4907c8], eax
mov eax, dword [0x4907c8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x45f0ad
cmp dword [0x4907cc], ecx
je 0x45f0ad
push eax
call fcn.004549dc
push dword [0x4907cc]
mov esi, eax
call fcn.004549dc
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x45f0ad
cmp edi, ebx
je 0x45f0ad
call esi
cmp eax, ebx
je 0x45f07a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45f07a
test byte [ebp - 0x18], 1
jne 0x45f0ad
lea eax, [ebp - 0x10]
push eax
call fcn.00452980
test eax, eax
pop ecx
je 0x45f095
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0044e1cd
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x45f0a4
or dword [ebp + 0x10], 0x200000
jmp 0x45f0e8
or dword [ebp + 0x10], 0x40000
jmp 0x45f0e8
mov eax, dword [0x4907c0]
cmp eax, dword [ebp - 8]
je 0x45f0e8
push eax
call fcn.004549dc
cmp eax, ebx
pop ecx
je 0x45f0e8
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x45f0e8
mov eax, dword [0x4907c4]
cmp eax, dword [ebp - 8]
je 0x45f0e8
push eax
call fcn.004549dc
cmp eax, ebx
pop ecx
je 0x45f0e8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4907bc]
call fcn.004549dc
cmp eax, ebx
pop ecx
je 0x45f108
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45f10a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4637c6
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4844a0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0046375b
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.0044cb90
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 0x463815
cmp dword [ebp - 0x1c], 5
jb 0x46382d
jmp 0x463829
cmp dword [ebp - 0x10], 1
jne 0x46382d
cmp dword [ebp - 0x1c], 4
ja 0x463829
jne 0x46382d
cmp dword [ebp - 0x18], 0
jbe 0x46382d
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x477844
call fcn.0046364c
test eax, eax
jge 0x46384e
mov byte [0x48d9b0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0044cb81
add ebp, 0x78
leave
ret
Function at 0x402f0e
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
or dword [ebp - 8], 0xffffffff
mov eax, ecx
push ebx
push esi
push edi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x18], edx
push ecx
xor edi, edi
mov dword [ebp - 0x10], eax
push eax
mov esi, edi
mov dword [ebp - 4], edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov ebx, eax
test ebx, ebx
je 0x402f91
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x402f54
push 8
pop edi
or ebx, 0xffffffff
jmp 0x402fa7
push esi
push ebx
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x402f91
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
push 0x402734
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x402f99
cmp dword [ebp - 0x14], edi
je 0x402f99
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 8], eax
jmp 0x402f9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
or ebx, 0xffffffff
test esi, esi
je 0x402fa7
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x402fb0
mov dword [eax], ebx
mov eax, dword [ebp + 8]
test eax, eax
je 0x402fbc
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403bf3
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x40ba28
call fcn.00407000
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x403c53
cmp eax, 0xffffffff
je 0x403c53
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x403c4c
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x403c4c
cmp edx, 0x10000000
jae 0x403c4c
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x403c49
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4040e3
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov edi, edi
push esi
push edi
call fcn.00403f2d
mov esi, eax
test esi, esi
je 0x404260
push 0x4012e4
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4012f0
push esi
mov dword [0x40ce48], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4012fc
push esi
mov dword [0x40ce4c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401308
push esi
mov dword [0x40ce50], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x40ce48], 0
mov dword [0x40ce54], eax
je 0x404159
cmp dword [0x40ce4c], 0
je 0x404159
cmp dword [0x40ce50], 0
je 0x404159
test eax, eax
jne 0x404181
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x40ce4c], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x40ce50], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x40ce48], 0x403ca0
mov dword [0x40ce54], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x40c564], eax
cmp eax, 0xffffffff
je 0x404265
push dword [0x40ce4c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x404265
call fcn.00404492
push dword [0x40ce48]
call fcn.00403d52
push dword [0x40ce4c]
mov dword [0x40ce48], eax
call fcn.00403d52
push dword [0x40ce50]
mov dword [0x40ce4c], eax
call fcn.00403d52
push dword [0x40ce54]
mov dword [0x40ce50], eax
call fcn.00403d52
add esp, 0x10
mov dword [0x40ce54], eax
call fcn.00407215
test eax, eax
je 0x404260
push 0x403dd0
push dword [0x40ce48]
call fcn.00403cdd
pop ecx
mov esi, eax
mov ecx, eax
call dword [0x40f130]
call esi
mov dword [0x40c560], eax
cmp eax, 0xffffffff
je 0x404260
push 0x214
push 1
call fcn.00407319
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x404260
push edi
push dword [0x40c560]
push dword [0x40ce50]
call fcn.00403cdd
pop ecx
mov esi, eax
mov ecx, eax
call dword [0x40f130]
call esi
test eax, eax
jne 0x40426a
push edi
call fcn.0040727c
pop ecx
call fcn.0040427d
xor eax, eax
pop edi
pop esi
ret
push 0
push edi
call fcn.0040400a
pop ecx
pop ecx
or dword [edi + 4], 0xffffffff
xor eax, eax
inc eax
jmp 0x404267
Function at 0x4046e1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov esi, ebx
cmp edi, dword [esi*8 + 0x401008]
je 0x404700
inc esi
cmp esi, 0x17
jb 0x4046f1
cmp esi, 0x17
jae 0x404840
push 3
call fcn.00407941
pop ecx
cmp eax, 1
je 0x40480a
push 3
call fcn.00407941
pop ecx
test eax, eax
jne 0x404733
cmp dword [0x40c550], 1
je 0x40480a
cmp edi, 0xfc
je 0x404840
push 0x4018e0
push 0x314
mov edi, 0x40ce90
push edi
call fcn.00407852
add esp, 0xc
test eax, eax
je 0x404768
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040612a
add esp, 0x14
push 0x104
push 0x40cea9
push ebx
mov byte [0x40cfad], bl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4047ab
push 0x4018fc
push 0x2fb
push 0x40cea9
call fcn.00407852
add esp, 0xc
test eax, eax
je 0x4047ab
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040612a
add esp, 0x14
push 0x401914
push 0x314
push edi
call fcn.004078c2
add esp, 0xc
test eax, eax
je 0x4047cf
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040612a
add esp, 0x14
push dword [esi*8 + 0x40100c]
push 0x314
push edi
call fcn.004078c2
add esp, 0xc
test eax, eax
je 0x4047f5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040612a
add esp, 0x14
push 0x12010
push 0x401918
push edi
call fcn.0040798d
add esp, 0xc
jmp 0x404840
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, eax
test edx, edx
je 0x404840
cmp edx, 0xffffffff
je 0x404840
mov esi, dword [esi*8 + 0x40100c]
mov ecx, esi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404829
push ebx
lea eax, [ebp - 4]
sub ecx, edi
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404f95
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x405027
xor edx, edx
push esi
mov esi, edi
cmp word [edi], dx
je 0x404fca
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x404fc5
add esi, 2
movzx ecx, word [esi]
test cx, cx
jne 0x404fb2
push ebx
push edx
push edx
push edx
sub esi, edi
push edx
sar esi, 1
inc esi
push esi
push edi
push edx
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 4], eax
test eax, eax
je 0x40501c
push eax
call fcn.00408404
mov ebx, eax
pop ecx
test ebx, ebx
je 0x40501c
xor eax, eax
push eax
push eax
push dword [ebp - 4]
push ebx
push esi
push edi
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x405011
push ebx
call fcn.0040727c
pop ecx
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x405025
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebx
pop esi
pop edi
leave
ret
Function at 0x407370
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4073ae
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4073a6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4073b0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407396
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407480
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x4074b1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4074b1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x4074b1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret