joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414da0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
cmp eax, 3
ja case.default.0x414db2
jmp dword [eax*4 + 0x416610]
cmp dword [0x4191c0], 0
je 0x414eb1
push 0x4191c4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4191dc]
test edi, edi
je 0x414ea6
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x414dfb
mov edi, dword [edi + 8]
test edi, edi
je 0x414ea6
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
call ebx
test eax, eax
jne 0x414df0
test esi, esi
je 0x414df0
mov eax, dword [edi + 4]
push esi
call eax
add esp, 4
jmp 0x414df0
cmp dword [0x4191c0], 0
jne 0x414e2e
push 0x4191c4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4191c0], 1
jmp case.default.0x414db2
call fcn.00404cd0
jmp case.default.0x414db2
cmp dword [0x4191c0], 0
je case.default.0x414db2
push 0x4191c4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4191dc]
test edi, edi
je 0x414f03
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x414e87
mov edi, dword [edi + 8]
test edi, edi
je 0x414f03
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
call ebx
test eax, eax
jne 0x414e80
test esi, esi
je 0x414e80
mov eax, dword [edi + 4]
push esi
call eax
add esp, 4
jmp 0x414e80
push 0x4191c4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x4191c0]
cmp eax, 1
jne case.default.0x414db2
mov eax, dword [0x4191dc]
test eax, eax
je 0x414ee2
nop word cs:[eax + eax]
nop
mov esi, dword [eax + 8]
push eax
call sub.msvcrt.dll_free
add esp, 4
test esi, esi
mov eax, esi
jne 0x414ed0
mov dword [0x4191dc], 0
mov dword [0x4191c0], 0
push 0x4191c4
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp case.default.0x414db2
push 0x4191c4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x415060
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, dword [0x41615c]
movzx ecx, word [esi]
xor eax, eax
cmp ecx, 0x5a4d
jne 0x4150c6
mov ecx, dword [esi + 0x3c]
cmp dword [esi + ecx], 0x4550
jne 0x4150c6
add esi, ecx
movzx ecx, word [esi + 0x18]
cmp ecx, 0x10b
jne 0x4150c6
movzx ecx, word [esi + 6]
test ecx, ecx
je 0x4150c6
mov edx, dword [ebp + 8]
sub edx, dword [0x41615c]
movzx edi, word [esi + 0x14]
lea esi, [esi + edi + 0x18]
jmp 0x4150b6
add esi, 0x28
dec ecx
je 0x4150c6
mov edi, dword [esi + 0xc]
cmp edi, edx
ja 0x4150b0
add edi, dword [esi + 8]
cmp edi, edx
jbe 0x4150b0
mov eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x4013f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e670
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x451598]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 0
call fcn.00406150
test ebx, ebx
je 0x4014f7
cmp dword [ebp + 0xc], 0
je 0x4014f7
mov eax, dword [ebp + 8]
mov edi, dword [eax + 8]
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x401
or eax, ecx
jge 0x40146f
push 0x401
mov ecx, esi
call fcn.00406040
mov eax, dword [esi]
mov ecx, dword [ebp + 0xc]
push edi
push 0x400
push eax
push 0x445f28
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x40148f
mov dword [ebp - 0x14], eax
mov edx, dword [esi]
test edx, edx
jne 0x401499
xor eax, eax
jmp 0x4014b1
mov eax, edx
lea edi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4014a0
sub eax, edi
sar eax, 1
js 0x4014d8
cmp eax, dword [edx - 8]
jg 0x4014d8
mov dword [edx - 0xc], eax
mov edx, dword [esi]
mov word [edx + eax*2], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00405a30
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], 0
call fcn.0040c450
mov eax, 0x4014c1
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x405f50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405f69
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405fa4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x405fa0
lea ebx, [ebx]
cmp esi, eax
jae 0x405fa4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x405f90
cmp esi, eax
jb 0x405faa
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x407530
Capabilities:
Check os version

Disassembly:
sub esp, 0x12c
mov eax, dword [0x451598]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
push edi
push 0x11c
xor esi, esi
lea eax, [esp + 0x10]
push esi
push eax
mov edi, ecx
call fcn.00429e90
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4075da
cmp byte [esp + 0x126], 1
jne 0x4075da
mov eax, dword [esp + 0x1c]
sub eax, 2
jne 0x4075da
mov eax, dword [esp + 0x10]
cmp eax, 6
jbe 0x4075ae
call fcn.004076b0
neg eax
sbb eax, eax
neg eax
add eax, 0x13f2
push eax
lea eax, [edi + 0xb0]
call fcn.00403980
jmp 0x4075d4
jne 0x4075bc
mov eax, dword [esp + 0x14]
push edi
call fcn.00407600
jmp 0x4075d4
cmp eax, 5
jne 0x4075da
movzx edx, word [esp + 0x120]
mov ecx, dword [esp + 0x14]
push edx
push edi
call fcn.00407670
mov esi, eax
test esi, esi
jne 0x4075e7
push 0
push edi
mov edi, 0x1008
call fcn.00407720
mov ecx, dword [esp + 0x130]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.00428ab5
add esp, 0x12c
ret

Function at 0x413809
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 0x41384c
call fcn.0041929a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41384c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x413867
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004133c3
test ebx, ebx
mov esi, eax
je 0x413865
test edi, edi
je 0x413865
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x413dd8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x451598]
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 0x413e15
push 0x441ab8
push 4
push eax
call fcn.0042968b
push eax
call fcn.00405a80
add esp, 0x10
jmp 0x413e27
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x413e92
push edi
call fcn.0042a41c
mov edi, dword [eax]
call fcn.0042a41c
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.0042a3c2
add esp, 0x18
mov ebx, eax
call fcn.0042a41c
cmp dword [eax], 0
je 0x413e72
call fcn.0042a41c
push dword [eax]
call fcn.0040dfbd
pop ecx
jmp 0x413e79
call fcn.0042a41c
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x413e92
cmp ebx, esi
jae 0x413e92
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x413e94
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00428ab5
leave
ret
Function at 0x414eb9
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 0x414eff
call fcn.0041929a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x414eff
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x414f42
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 0x414f2b
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 0x414f2b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x414f3f
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 0x416150
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x43d7f4
call fcn.00429cdb
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.0041929a
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x41619b
call fcn.0041929a
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x4161ac
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x4161b9
or eax, 0xffffffff
jmp 0x416315
mov ecx, esi
call fcn.00415ca2
mov dword [ebp - 0x14], eax
call fcn.00410d70
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x416237
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x416237
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x416237
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0040db59
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x416237
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x416237
mov ecx, ebx
call fcn.0041816b
test eax, eax
je 0x416237
push 0
mov ecx, ebx
call fcn.00418186
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.004126ef
push dword [ebp - 0x14]
call fcn.00410cc8
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00415f58
xor edi, edi
cmp eax, edi
je 0x416294
test byte [esi + 0x3c], 0x10
je 0x41627e
push 4
pop edi
mov ecx, esi
call fcn.00418052
test ax, 0x100
je 0x416274
push 5
pop edi
push edi
mov ecx, esi
call fcn.0041085e
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x416294
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00418359
or dword [ebp - 4], 0xffffffff
jmp 0x4162bf
cmp dword [ebp - 0x28], edi
je 0x4162cd
push 1
mov ecx, ebx
call fcn.00418186
cmp dword [ebp - 0x2c], edi
je 0x4162dd
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4162f6
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x4162f6
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.00415cdc
cmp dword [esi + 0x58], edi
je 0x416312
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00429d80
ret
Function at 0x419972
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 0x4199a0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4199be
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004198dc
jmp 0x4199be
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4199be
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004198dc
test edi, edi
mov eax, edi
jne 0x4199a8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4548d4]
test ecx, ecx
je 0x419a81
jmp 0x419971
ret 8

Function at 0x428ab5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x451598]
jne 0x428abf
repz ret
jmp fcn.0042ecf0

Function at 0x42ce07
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 + 0x451730]
je 0x42ce22
inc edi
cmp edi, 0x17
jb 0x42ce13
cmp edi, 0x17
jae 0x42cfa2
push ebp
push 3
call fcn.004356a6
cmp eax, 1
pop ecx
je 0x42cf6e
push 3
call fcn.004356a6
test eax, eax
pop ecx
jne 0x42ce56
cmp dword [0x451574], 1
je 0x42cf6e
cmp ebx, 0xfc
je 0x42cfa1
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x454c38
push ebp
call fcn.0042e07f
add esp, 0xc
test eax, eax
je 0x42ce8c
push esi
push esi
push esi
push esi
push esi
call fcn.0042893f
add esp, 0x14
push 0x104
mov esi, 0x454c51
push esi
push 0
mov byte [0x454d55], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42ced0
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0042e07f
add esp, 0xc
test eax, eax
je 0x42ced0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042893f
add esp, 0x14
push esi
call fcn.0042e0f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42cf15
push esi
call fcn.0042e0f0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x454f4c
push 0x444254
sub ecx, eax
push ecx
push eax
call fcn.004355f3
add esp, 0x14
test eax, eax
je 0x42cf15
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0042893f
add esp, 0x14
jmp 0x42cf17
xor esi, esi
push 0x444250
push ebx
push ebp
call fcn.00435582
add esp, 0xc
test eax, eax
je 0x42cf37
push esi
push esi
push esi
push esi
push esi
call fcn.0042893f
add esp, 0x14
push dword [edi*8 + 0x451734]
push ebx
push ebp
call fcn.00435582
add esp, 0xc
test eax, eax
je 0x42cf59
push esi
push esi
push esi
push esi
push esi
call fcn.0042893f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004353c5
add esp, 0xc
jmp 0x42cfa1
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x42cfa1
cmp ebp, 0xffffffff
je 0x42cfa1
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x451734]
push dword [esi]
call fcn.0042e0f0
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 0x4353c5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042d9b7
xor ebx, ebx
cmp dword [0x455728], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43549b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43557b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x43557b
push eax
call fcn.0042d949
mov dword [esp], 0x444490
push edi
mov dword [0x455728], eax
call esi
push eax
call fcn.0042d949
mov dword [esp], 0x44447c
push edi
mov dword [0x45572c], eax
call esi
push eax
call fcn.0042d949
mov dword [0x455730], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0042bbe5
test eax, eax
pop ecx
pop ecx
je 0x435469
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042893f
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43549b
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0042d949
cmp eax, ebx
pop ecx
mov dword [0x455738], eax
je 0x43549b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042d949
pop ecx
mov dword [0x455734], eax
mov eax, dword [0x455734]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x435520
cmp dword [0x455738], ecx
je 0x435520
push eax
call fcn.0042d9c0
push dword [0x455738]
mov esi, eax
call fcn.0042d9c0
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x435520
cmp edi, ebx
je 0x435520
call esi
cmp eax, ebx
je 0x4354ed
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4354ed
test byte [ebp - 0x18], 1
jne 0x435520
lea eax, [ebp - 0x10]
push eax
call fcn.0042bc1c
test eax, eax
pop ecx
je 0x435508
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042893f
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x435517
or dword [ebp + 0x10], 0x200000
jmp 0x43555b
or dword [ebp + 0x10], 0x40000
jmp 0x43555b
mov eax, dword [0x45572c]
cmp eax, dword [ebp - 8]
je 0x43555b
push eax
call fcn.0042d9c0
cmp eax, ebx
pop ecx
je 0x43555b
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43555b
mov eax, dword [0x455730]
cmp eax, dword [ebp - 8]
je 0x43555b
push eax
call fcn.0042d9c0
cmp eax, ebx
pop ecx
je 0x43555b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x455728]
call fcn.0042d9c0
cmp eax, ebx
pop ecx
je 0x43557b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43557d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43cf52
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x451598]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0043cee7
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.00429e90
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 0x43cfa1
cmp dword [ebp - 0x1c], 5
jb 0x43cfb9
jmp 0x43cfb5
cmp dword [ebp - 0x10], 1
jne 0x43cfb9
cmp dword [ebp - 0x1c], 4
ja 0x43cfb5
jne 0x43cfb9
cmp dword [ebp - 0x18], 0
jbe 0x43cfb9
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x445df8
call fcn.0043cdbb
test eax, eax
jge 0x43cfda
mov byte [0x45596c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00428ab5
add ebp, 0x78
leave
ret
Function at 0x40164c
Capabilities:
Encode data using xor
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, ecx
mov dword [edi + 8], eax
xor eax, eax
mov ecx, dword [edi]
mov edx, dword [eax + 0x41e030]
mov dword [eax + ecx], edx
add eax, 4
cmp eax, 0x48
jl 0x40165f
xor eax, eax
mov ecx, 0x100
mov edx, dword [edi + 4]
mov esi, dword [eax + 0x41e078]
mov dword [edx + eax], esi
add eax, 4
dec ecx
jne 0x401679
cmp eax, 0x1000
jl 0x401674
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ecx, ecx
and dword [ebp - 4], ecx
mov al, byte [ecx + esi]
mov byte [ebp + 0x13], al
lea eax, [ecx + 1]
cdq
idiv ebx
mov al, byte [edx + esi]
mov byte [ebp + 0x12], al
lea eax, [ecx + 2]
cdq
idiv ebx
mov al, byte [edx + esi]
mov byte [ebp + 0x11], al
lea eax, [ecx + 3]
cdq
idiv ebx
mov al, byte [edx + esi]
mov edx, dword [ebp - 4]
mov byte [ebp + 0x10], al
mov eax, dword [edi]
add eax, edx
mov edx, dword [ebp + 0x10]
add dword [ebp - 4], 4
xor dword [eax], edx
lea eax, [ecx + 4]
cdq
idiv ebx
cmp dword [ebp - 4], 0x48
mov ecx, edx
jl 0x40169d
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
lea eax, [ebp - 8]
push eax
call fcn.00401036
mov eax, dword [edi]
mov ecx, dword [ebp - 8]
mov dword [esi + eax], ecx
mov eax, dword [edi]
mov ecx, dword [ebp - 0xc]
mov dword [esi + eax + 4], ecx
add esi, 8
cmp esi, 0x48
jl 0x4016ed
push 4
pop esi
mov ebx, 0x80
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
lea eax, [ebp - 8]
push eax
call fcn.00401036
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 8]
mov dword [eax + esi - 4], ecx
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 0xc]
mov dword [eax + esi], ecx
add esi, 8
dec ebx
jne 0x40171d
cmp esi, 0x1004
jl 0x401718
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4044bc
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov al, byte [0x421080]
push ebx
push esi
push edi
mov ebx, ecx
push 0x40
mov byte [ebp - 0x110], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x214]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x110]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 4
jb 0x404523
lea eax, [ebp - 0x110]
push str.Media
push eax
call fcn.00416b40
pop ecx
pop ecx
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x110]
lea ecx, [ebp - 0xc]
push eax
push 0x41f928
push 0x41f918
push 0x433
mov dword [ebp - 0xc], ebx
call fcn.0040b1fa
mov esi, eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40485b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 8]
xor ebx, ebx
call fcn.00416dc0
mov edi, eax
mov eax, dword [esi]
pop ecx
cmp dword [eax + 0x60], ebx
je 0x4048c5
add eax, 0x64
cmp byte [eax], bl
je 0x4048c5
push ebx
push 0x80
push 4
push ebx
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4048c1
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 4]
push ebx
push eax
push edi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x4048c8
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x405db2
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x80
push 3
push ebx
push 3
push connect
push dword [ebp + 8]
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [ebp + 0xc]
cmp eax, 0xffffffff
mov dword [esi + 0x34], eax
je 0x405e92
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp + 8]
xor ecx, ecx
xor edi, edi
or ecx, eax
or edx, edi
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], edx
mov ecx, dword [esi + 0x20]
or ecx, edx
jne 0x405e11
push 1
pop eax
jmp 0x405e9a
push ebx
push eax
push dword [ebp + 8]
push 2
push ebx
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edx, dword [esi + 0x20]
mov edi, eax
mov eax, dword [esi + 0x24]
mov dword [esi + 0x38], edi
cmp eax, ebx
mov ecx, 0x800000
jl 0x405e41
jg 0x405e3c
cmp edx, ecx
jbe 0x405e41
mov dword [ebp + 0xc], ecx
jmp 0x405e44
mov dword [ebp + 0xc], edx
mov eax, dword [esi + 0x2c]
mov edx, dword [esi + 0x28]
mov ebx, eax
mov dword [ebp + 8], eax
sar ebx, 0x1f
xor ebx, ebx
push ebx
push ecx
push eax
push edx
call fcn.00416f70
push dword [ebp + 0xc]
shl eax, 0x17
push eax
push dword [ebp + 8]
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [esi + 0x30], eax
je 0x405e92
push 1
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp eax, 1
jne 0x405e92
mov ecx, dword [ebp - 4]
push esi
call fcn.00405ea1
xor eax, eax
jmp 0x405e9a
xor eax, eax
cmp dword [esi + 0x30], ebx
setne al
pop edi
pop esi
pop ebx
leave
ret 8