joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000e055
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x10016022
call fcn.10013691
mov esi, dword [ebp + 8]
xor eax, eax
xor edi, edi
xor ebx, ebx
mov word [esi], ax
mov dword [ebp - 4], edi
call fcn.10013990
test eax, eax
je 0x1000e080
call fcn.1000e046
mov ebx, eax
push 0x104
push esi
push ebx
push edi
push 0x100173dc
call dword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov esi, eax
cmp esi, edi
jge 0x1000e0db
push esi
push str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__hToken__pPath__MAX_PATH_
call fcn.100108bc
pop ecx
pop ecx
push edi
push esi
call fcn.10013990
mov ecx, dword [ebp - 0x18]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x14], esi
call fcn.1000e72f
push eax
push esi
push 0x100197c4
call fcn.100108bc
or dword [ebp - 4], 0xffffffff
add esp, 0xc
mov eax, 0x1000e0d4
ret
cmp ebx, edi
je 0x1000e0e6
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x1000e197
push dword [ebp + 8]
mov dword [ebp - 4], 2
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x1000e143
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
jmp 0x1000e09f
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x1000e197
push 1
push 0x1a
push dword [ebp + 8]
mov dword [ebp - 4], 4
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x1000e197
push esi
push str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
jmp 0x1000e09f
mov eax, esi
call fcn.10013736
ret

Function at 0x1000e4df
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x10022df0]
xor eax, ebp
mov dword [ebp + 0x9c], eax
mov eax, dword [ebp + 0xa8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.10013990
mov ebx, eax
cmp ebx, esi
je 0x1000e552
lea ecx, [ebp - 0x74]
call fcn.10001ba0
mov eax, ebx
mov ecx, dword [ebp + 0x9c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10013502
add ebp, 0xa0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x1000e56a
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.1000e4df
cmp eax, esi
jne 0x1000e59c
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], 0x100
call ebx
test eax, eax
je 0x1000e55a
lea ecx, [ebp - 0x74]
call fcn.10001ba0
push dword [ebp - 0x78]
mov ecx, edi
call fcn.1000bfdf
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.10001ba0
mov eax, esi
jmp 0x1000e538
Function at 0x1000e875
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_GetTickCount]
xor ebx, ebx
call edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
xor ecx, ecx
and al, 1
cmp al, 1
sete cl
push ebx
push ecx
push dword [esp + 0x48]
mov dword [esp + 0x40], ecx
push dword [esp + 0x48]
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
cmp eax, 0xffffffff
jne 0x1000e8d8
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jle 0x1000e8c4
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
push ebx
push str.WaitForMultipleObjects__08x_
call fcn.100108bc
pop ecx
pop ecx
jmp 0x1000e9a9
cmp eax, 0x102
jne 0x1000e9a3
push 0x4bf
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
call dword [sym.imp.user32.dll_MsgWaitForMultipleObjects]
cmp eax, 0xffffffff
jne 0x1000e928
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jle 0x1000e917
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
push ebx
push str.MsgWaitForMultipleObjects__08x_
call fcn.100108bc
pop ecx
pop ecx
jmp 0x1000e992
cmp eax, 0x102
je 0x1000e99c
cmp dword [esp + 0x3c], eax
jne 0x1000e9a3
call edi
mov ebp, eax
mov esi, ebp
sub esi, dword [esp + 0x10]
jmp 0x1000e95c
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.user32.dll_DispatchMessageA]
call edi
mov ebp, eax
mov esi, ebp
sub esi, dword [esp + 0x10]
cmp esi, dword [esp + 0x38]
ja 0x1000e974
push 1
xor eax, eax
push eax
push eax
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.user32.dll_PeekMessageA]
test eax, eax
jne 0x1000e941
jmp 0x1000e979
mov ebx, 0x80010115
test ebx, ebx
js 0x1000e9a9
cmp esi, dword [esp + 0x38]
ja 0x1000e99c
cmp dword [esp + 0x38], 0xffffffff
je 0x1000e98e
sub dword [esp + 0x38], esi
mov dword [esp + 0x10], ebp
test ebx, ebx
jns 0x1000e8e3
jmp 0x1000e9a9
mov ebx, 0x80010115
jmp 0x1000e9a9
mov ecx, dword [esp + 0x44]
mov dword [ecx], eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x20
ret

Function at 0x1000ecd6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
lea eax, [esi + 0xc]
push eax
push 0
push esi
push 0x1000e867
push 0
push 0
call dword [sym.imp.msvcr100.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 8], eax
pop esi
test eax, eax
jne 0x1000ed17
call dword [sym.imp.msvcr100.dll__errno]
mov eax, dword [eax]
mov dword [ebp - 4], eax
push 0x1001d694
lea eax, [ebp - 4]
push eax
call sub.msvcr100.dll__CxxThrowException
leave
ret
Function at 0x1000ef2f
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x179c]
mov eax, 0x181c
call fcn.10013780
mov eax, dword [0x10022df0]
xor eax, ebp
mov dword [ebp + 0x1798], eax
mov eax, dword [ebp + 0x17a4]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0x7ff
push edi
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0xf99]
push ebx
push eax
mov dword [ebp - 0x70], ebx
mov byte [ebp + 0xf98], bl
call sub.msvcr100.dll_memset
push edi
lea eax, [ebp - 0x67]
push ebx
push eax
mov byte [ebp - 0x68], bl
call sub.msvcr100.dll_memset
add esp, 0x18
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push ebx
push 0x1001a4b0
lea esi, [edi + 1]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x6c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000f08f
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0xf98]
push eax
push ebx
jmp 0x1000f07e
lea eax, [ebp + 0xf98]
push eax
push 0x1001a4dc
push 0x1001a508
lea eax, [ebp - 0x68]
push esi
push eax
call dword [sym.imp.msvcr100.dll_sprintf_s]
add esp, 0x14
lea eax, [ebp - 0x78]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x68]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000f066
push edi
lea eax, [ebp + 0x799]
push ebx
push eax
mov byte [ebp + 0x798], bl
call sub.msvcr100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x798]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push 0x1001a510
push dword [ebp - 0x78]
mov dword [ebp - 0x6c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000f066
cmp dword [ebp - 0x6c], ebx
jbe 0x1000f066
mov eax, dword [ebp + 0x17a8]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
lea eax, [ebp - 0x80]
push eax
push ebx
push 0x1001a51c
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
inc dword [ebp - 0x70]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0xf98]
push eax
push dword [ebp - 0x70]
mov dword [ebp - 0x6c], esi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x1000efc6
mov eax, dword [ebp - 0x74]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1000f095
sub eax, edx
xor ecx, ecx
cmp ecx, eax
mov ecx, dword [ebp + 0x1798]
pop edi
sbb eax, eax
pop esi
xor ecx, ebp
neg eax
pop ebx
call fcn.10013502
add ebp, 0x179c
leave
ret
Function at 0x1000f85c
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x138]
sub esp, 0x1b8
mov eax, dword [0x10022df0]
xor eax, ebp
mov dword [ebp + 0x134], eax
push ebx
push 0x104
xor ebx, ebx
lea eax, [ebp + 0x30]
push ebx
push eax
call sub.msvcr100.dll_memset
add esp, 0xc
lea eax, [ebp + 0x30]
push eax
push ebx
push ebx
push 0x2c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
je 0x1000f8b7
xor eax, eax
mov ecx, dword [ebp + 0x134]
xor ecx, ebp
pop ebx
call fcn.10013502
add ebp, 0x138
leave
ret
push esi
lea eax, [ebp + 0x30]
push edi
mov dword [ebp + 0x28], 0xf
mov dword [ebp + 0x24], ebx
mov byte [ebp + 0x14], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1000f8cc
sub eax, esi
push eax
lea eax, [ebp + 0x30]
push eax
lea ecx, [ebp + 0x14]
call fcn.10002aab
push str.JavaJava_Updatejucheck.exe
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.10013990
add esp, 0xc
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp + 0x14]
call fcn.10002786
push 0x22
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x14]
push 0x22
push eax
call fcn.1000fdcd
add esp, 0xc
push eax
lea eax, [ebp - 8]
push eax
call fcn.10013990
add esp, 0xc
push ebx
push esi
lea ecx, [ebp + 0x14]
call fcn.10002786
push 0x40
lea eax, [ebp - 0x7c]
push ebx
push eax
call sub.msvcr100.dll_memset
mov ecx, dword [ebp - 8]
xor eax, eax
mov dword [ebp - 0x3c], ebx
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
cmp dword [ebp + 0xc], 0x10
stosd dword es:[edi], eax
mov dword [ebp - 0x80], 0x44
mov eax, ecx
jae 0x1000f95e
lea eax, [ebp - 8]
add eax, dword [ebp + 8]
cmp dword [ebp + 0xc], 0x10
jae 0x1000f96a
lea ecx, [ebp - 8]
push dword [ebp - 0x29]
mov dword [ebp + 0x20], ebx
push eax
push ecx
lea ecx, [ebp + 0x20]
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
call fcn.1000fe48
lea eax, [ebp - 0x25]
push eax
lea ecx, [ebp + 0x20]
mov byte [ebp - 0x25], bl
call fcn.1000fc2a
cmp dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 0x24]
jae 0x1000f99b
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x80]
push ecx
push ebx
push ebx
push 0x8000000
push esi
push ebx
push ebx
push dword [ebp + 0x20]
push eax
call fcn.10013990
add esp, 0x28
test eax, eax
jne 0x1000f9e4
xor edi, edi
lea ecx, [ebp + 0x20]
call fcn.1000fabc
push ebx
push esi
lea ecx, [ebp - 8]
call fcn.10002786
push ebx
push esi
lea ecx, [ebp - 0x24]
call fcn.10002786
mov eax, edi
pop edi
pop esi
jmp 0x1000f8a1
mov edi, esi
jmp 0x1000f9bf
Function at 0x1000fef2
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1f9c]
mov eax, 0x201c
call fcn.10013780
mov eax, dword [0x10022df0]
xor eax, ebp
mov dword [ebp + 0x1f98], eax
mov eax, dword [ebp + 0x1fa4]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0x7ff
push edi
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x1799]
push ebx
mov dword [ebp - 0x78], ebx
push eax
mov dword [ebp - 0x70], ebx
mov byte [ebp + 0x1798], bl
call sub.msvcr100.dll_memset
push edi
lea eax, [ebp + 0x799]
push ebx
push eax
mov byte [ebp + 0x798], bl
call sub.msvcr100.dll_memset
add esp, 0x18
lea eax, [ebp - 0x80]
push eax
push 0x20019
push ebx
push 0x1001a868
lea esi, [edi + 1]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x6c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001005c
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x1798]
push eax
push ebx
jmp 0x1001004b
lea eax, [ebp + 0x1798]
push eax
push str.SOFTWAREJavaSoftJava_Runtime_Environment
push str._s_s
lea eax, [ebp + 0x798]
push esi
push eax
call dword [sym.imp.msvcr100.dll_sprintf_s]
add esp, 0x14
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push ebx
lea eax, [ebp + 0x798]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10010033
push edi
lea eax, [ebp + 0xf99]
push ebx
push eax
mov byte [ebp + 0xf98], bl
call sub.msvcr100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0xf98]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push str.RuntimeLib
push dword [ebp - 0x7c]
mov dword [ebp - 0x6c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10010033
cmp dword [ebp - 0x6c], ebx
jbe 0x10010033
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push 0x1001a8d4
push dword [ebp - 0x7c]
mov dword [ebp - 0x6c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
inc dword [ebp - 0x70]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x1798]
push eax
push dword [ebp - 0x70]
mov dword [ebp - 0x6c], esi
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x1000ff92
mov ecx, dword [ebp - 0x74]
lea eax, [ebp - 0x68]
push eax
call fcn.1000e5aa
mov ecx, dword [ebp + 0x1f98]
mov eax, dword [ebp - 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10013502
add ebp, 0x1f9c
leave
ret
Function at 0x10013502
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10022df0]
jne 0x1001350c
repz ret
jmp fcn.10013cd3
Function at 0x40db80
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4143d8], 0
jne 0x40dc01
cmp dword [0x4143f8], 0
jne 0x40dbb0
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4143f8], eax
test eax, eax
jne 0x40dbb0
push str.GetEnvironmentStrings_failed
call fcn.0040cbf0
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4143f8]
jmp 0x40dbc4
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00406b08
pop ecx
mov edi, eax
test eax, eax
jne 0x40dbbc
lea edi, [ebp + 1]
push edi
call fcn.00405c3c
pop ecx
mov ebx, eax
mov dword [0x4143dc], ebx
test ebx, ebx
jne 0x40dbee
xor eax, eax
jmp 0x40dcc4
push edi
mov edx, dword [0x4143f8]
push edx
push ebx
call fcn.004069b8
add esp, 0xc
jmp 0x40dc21
xor esi, esi
mov ebx, dword [0x4143d8]
jmp 0x40dc1b
push eax
call fcn.00406b08
pop ecx
test eax, eax
jne 0x40dc17
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40dc0b
lea ebx, [esi + 4]
push 4
mov dword [0x4143e0], ebx
inc ebx
push ebx
call fcn.00405a3c
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x40dc44
xor eax, eax
jmp 0x40dcc4
cmp dword [0x4143d8], 0
jne 0x40dc75
xor esi, esi
mov ebx, dword [0x4143dc]
mov eax, dword [esp]
mov ebp, eax
jmp 0x40dc66
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00406b08
pop ecx
mov edi, eax
test eax, eax
jne 0x40dc5c
jmp 0x40dca6
xor esi, esi
mov ebx, dword [0x4143d8]
mov eax, dword [esp]
mov edi, eax
jmp 0x40dca0
push eax
call fcn.00406b08
pop ecx
test eax, eax
je 0x40dc95
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x40dc99
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40dc84
mov eax, dword [0x4143d8]
test eax, eax
je 0x40dcb6
push eax
call fcn.00405c4c
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4143d8], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x87d3d3b
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x7cb33378
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4028a5
Capabilities:
Get common file path
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1400
call fcn.00408ea0
mov eax, dword [0x2e7dff8]
mov ecx, dword [0x2e7cf48]
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x402982
push ebx
push edi
mov edi, ecx
mov ebx, eax
cmp dword [0x2e7dff8], 0x959
jne 0x402970
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SignalObjectAndWait]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsExA]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push esi
lea eax, [ebp - 0xc00]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringA]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
call dword [sym.imp.KERNEL32.dll_HeapUnlock]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
lea eax, [ebp - 0x1400]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
call fcn.004026ee
add edi, 8
dec ebx
jne 0x4028d1
pop edi
pop ebx
pop esi
leave
ret
Function at 0x403870
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x8090c8]
jne 0x40387a
repz ret
jmp fcn.00405dce

Function at 0x4059f4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404509
and dword [ebp - 4], 0
cmp dword [0x80a884], 0
mov ebx, eax
jne 0x405aa5
push 0x401930
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405b56
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401924
push edi
call esi
test eax, eax
je 0x405b56
push eax
call fcn.00404497
mov dword [esp], 0x401914
push edi
mov dword [0x80a884], eax
call esi
push eax
call fcn.00404497
mov dword [esp], 0x401900
push edi
mov dword [0x80a888], eax
call esi
push eax
call fcn.00404497
mov dword [esp], 0x4018e4
push edi
mov dword [0x80a88c], eax
call esi
push eax
call fcn.00404497
pop ecx
mov dword [0x80a894], eax
test eax, eax
je 0x405aa5
push 0x4018cc
push edi
call esi
push eax
call fcn.00404497
pop ecx
mov dword [0x80a890], eax
mov eax, dword [0x80a890]
cmp eax, ebx
je 0x405afd
cmp dword [0x80a894], ebx
je 0x405afd
push eax
call fcn.00404512
push dword [0x80a894]
mov esi, eax
call fcn.00404512
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x405afd
test edi, edi
je 0x405afd
call esi
test eax, eax
je 0x405af4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405af4
test byte [ebp - 0xc], 1
jne 0x405afd
or dword [ebp + 0x10], 0x200000
jmp 0x405b36
mov eax, dword [0x80a888]
cmp eax, ebx
je 0x405b36
push eax
call fcn.00404512
pop ecx
test eax, eax
je 0x405b36
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405b36
mov eax, dword [0x80a88c]
cmp eax, ebx
je 0x405b36
push eax
call fcn.00404512
pop ecx
test eax, eax
je 0x405b36
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x80a884]
call fcn.00404512
pop ecx
test eax, eax
je 0x405b56
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405b58
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x26c92844
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x622c5a6a
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401a30
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable

Function at 0x401a90
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x406050]
test esi, esi
jle 0x401b7d
mov edi, dword [0x406054]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x401ac4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x401b76
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x401ab0
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x401bba
lea ebx, [esi + esi*2]
mov esi, dword [0x406054]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x406054]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401b9a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x401b6f
sub eax, 0x40
and eax, 0xffffffbf
je 0x401b6f
mov eax, dword [esp + 0x20]
add ebx, dword [0x406054]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x401b84
add dword [0x406050], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x401ace
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
mov eax, dword [0x406054]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
Function at 0x402080
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x406408
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x406400]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x4020d5
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4020ce
test esi, esi
je 0x4020ce
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4020b0
mov dword [esp], 0x406408
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4022f0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x402328
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x40231e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40232a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402310
xor eax, eax
pop ebx
pop esi
ret