joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b3230
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, ecx
test esi, esi
jne 0x4b3242
xor al, al
pop esi
pop ebp
ret
mov byte [esi], 0
test eax, eax
je 0x4b323d
push edi
xor cl, cl
inc eax
mov edi, 4
movzx edx, byte [eax - 1]
movzx ecx, cl
xor edx, ecx
movzx ecx, byte [eax]
movzx edx, byte [edx + 0x64f700]
xor edx, ecx
movzx ecx, byte [eax + 1]
movzx edx, byte [edx + 0x64f700]
xor edx, ecx
movzx ecx, byte [eax + 2]
movzx edx, byte [edx + 0x64f700]
xor edx, ecx
movzx ecx, byte [eax + 3]
movzx edx, byte [edx + 0x64f700]
xor edx, ecx
movzx ecx, byte [eax + 4]
movzx edx, byte [edx + 0x64f700]
xor edx, ecx
lea eax, [eax + 6]
mov cl, byte [edx + 0x64f700]
dec edi
jne 0x4b3252
xor cl, 0x55
pop edi
mov byte [esi], cl
mov al, 1
pop esi
pop ebp
ret

Function at 0x4bc158
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x6049f1
call fcn.005d3686
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x6c], esi
jne 0x4bc17e
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4bc1d2
call fcn.004bd57a
push eax
lea ecx, [ebp - 0x10]
call fcn.00403380
mov ecx, dword [edi + 0x6c]
lea edx, [ebp - 0x10]
mov eax, dword [ecx]
push edx
mov dword [ebp - 4], esi
call dword [eax + 0x8c]
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
call fcn.005d3f4b
push eax
call fcn.0040a7e0
add esp, 0x14
test edi, edi
je 0x4bc1c5
push edi
call fcn.005d1ab0
pop ecx
mov esi, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004033b0
mov eax, esi
call fcn.005d3654
ret 8

Function at 0x4bcbc3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x685680]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x689fb4]
push esi
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x4bcc0f
push 0x61799c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4bcc2c
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x689fb4], eax
jmp 0x4bcc18
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x4bcc2c
push 0x800
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x4bcc99
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4bcc47
xor eax, eax
jmp 0x4bcc99
lea eax, [ebp - 0x210]
push eax
call fcn.005d2503
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x4bcc78
push 0x6179d4
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005d259e
add esp, 0xc
test eax, eax
jne 0x4bcc43
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005d259e
add esp, 0xc
test eax, eax
jne 0x4bcc43
lea eax, [ebp - 0x210]
push eax
call fcn.004bceb0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005cd355
leave
ret
Function at 0x4be71d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.004be3fd
mov ebx, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4be754
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.004be773
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x4c2616
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], esi
je 0x4c265b
call fcn.004be3fd
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4c265b
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4c2677
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004c0898
mov ebx, eax
test edi, edi
je 0x4c2675
test esi, esi
je 0x4c2675
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4cb50b
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x685680]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x20], eax
mov eax, dword [0x68ba80]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
test eax, eax
jne 0x4cb564
push 0x61799c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4cb581
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x68ba80], eax
jmp 0x4cb56d
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x4cb581
mov eax, dword [ebp - 0x20]
push ebx
push edi
push eax
push dword [ebp + 8]
call esi
jmp 0x4cb6be
mov eax, dword [ebp - 0x20]
and dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.005f55d4
lea eax, [ebp - 0x14]
push eax
call fcn.005d2503
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.005d260a
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
lea edi, [esi + 1]
call fcn.005f55d4
lea eax, [ebp - 0x14]
push eax
call fcn.005d2503
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.005d260a
add esp, 0x38
add edi, esi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.005f55d4
lea eax, [ebp - 0x14]
push eax
call fcn.005d2503
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.005d260a
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
add edi, esi
call fcn.005f55d4
lea eax, [ebp - 0x14]
push eax
call fcn.005d2503
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.005d260a
push 7
lea eax, [ebp - 0x14]
push eax
push 0x800
add edi, esi
call fcn.005f55d4
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.005d2503
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.005d260a
lea eax, [edi + esi]
xor ecx, ecx
mov word [ebx + eax*2 + 2], cx
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005cd355
leave
ret
Function at 0x4d0abe
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
mov ecx, dword [esi + 4]
push eax
push dword [ebp + 0xc]
call fcn.004bc0ca
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4d0afa
call fcn.004d0cd9
mov dword [esi + 0xc], 1
jmp 0x4d0aff
call fcn.004d0cd9
cmp dword [esi], 0
je 0x4d0b48
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4d0b22
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.004bcd10
jmp 0x4d0b33
push 0xff
mov ecx, esi
call fcn.004031c0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0042ede0
jmp 0x4d0b6c
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x4d0b6c
push dword [esi]
push dword [ebp - 4]
call fcn.004cb961
pop esi
leave
ret 0xc

Function at 0x4d0c30
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.004d0cd9
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4d0c78
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004bcd10
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0042ede0
jmp 0x4d0c83
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004cb961
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4d8082
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.004ec719
call fcn.004be451
cmp dword [eax + 0x14], 0
jne 0x4d809d
mov ecx, esi
pop esi
jmp fcn.004d7479
pop esi
ret

Function at 0x4e6fd3
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.0050bc63
call fcn.004be451
cmp dword [eax + 0x14], 0
jne 0x4e6fee
mov ecx, esi
pop esi
jmp fcn.004e68c6
pop esi
ret

Function at 0x4f3e7b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4f3e93
call fcn.004be3fd
mov esi, dword [eax + 0xc]
push 0x61f9cc
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x4f3ee9
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4f3ee8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x4f3ec9
xor esi, esi
jmp 0x4f3edf
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.004f3eef
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x5b28f3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
test byte [esi + 4], 1
push edi
mov dword [ebp - 4], ebx
je 0x5b290d
mov edi, dword [esi + 0xc]
jmp 0x5b294d
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x5b2926
call fcn.004bb452
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x5b293b
call fcn.004bb452
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x5b294d
call fcn.004bb452
call fcn.004be3fd
cmp dword [eax + 0x3c], 0
je 0x5b2962
push edi
mov ecx, ebx
call fcn.005b2217
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.005b2b25
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x7c]
test ecx, ecx
je 0x5b2985
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x7c], 0
test ebx, ebx
je 0x5b298e
mov edi, ebx
mov dword [eax + 0x7c], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x5ed426
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x685680]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.005d782f
mov dword [ebp - 0x14], eax
cmp dword [0x6901ec], edi
jne 0x5ed517
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x5ed4a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5ed5f7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x5ed5f7
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5ed5f7
push eax
call ebx
push 0x640638
push esi
mov dword [0x6901ec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x640648
push esi
mov dword [0x6901f0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x6901f4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x6901fc], eax
test eax, eax
je 0x5ed514
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x6901f8], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5ed53c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5ed52f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x5ed551
push 4
pop eax
jmp 0x5ed5f9
cmp dword [ebp - 0x14], edi
je 0x5ed551
push dword [0x6901ec]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5ed536
mov eax, dword [0x6901f8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x5ed5af
cmp dword [0x6901fc], esi
je 0x5ed5af
push eax
call ebx
push dword [0x6901fc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5ed5af
test eax, eax
je 0x5ed5af
call ecx
test eax, eax
je 0x5ed5a4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x5ed5a4
test byte [ebp - 8], 1
jne 0x5ed5af
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x5ed5df
mov eax, dword [0x6901f0]
cmp eax, esi
je 0x5ed5dc
push eax
call ebx
test eax, eax
je 0x5ed5dc
call eax
mov edi, eax
test edi, edi
je 0x5ed5dc
mov eax, dword [0x6901f4]
cmp eax, esi
je 0x5ed5dc
push eax
call ebx
test eax, eax
je 0x5ed5dc
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x6901ec]
call ebx
test eax, eax
je 0x5ed5f7
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x5ed5f9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005cd355
leave
ret
Function at 0x5f01f1
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.005db601
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x5f0229
xor eax, eax
jmp 0x5f0255
cmp esi, dword [ebp - 4]
je 0x5f0252
cmp dword [ebp + 0xc], 0
je 0x5f0252
push dword [edi + 0x9c]
call fcn.005efdff
push dword [edi + 0x9c]
mov esi, eax
call fcn.005d2503
pop ecx
pop ecx
cmp esi, eax
je 0x5f0225
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x5fabc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x5fad40
push 0xffffffffffffffff
push 0x609e28
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x685680]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [0x686c00]
cmp eax, 0xffffffff
jne 0x5fad79
xor ebp, ebp
mov dword [esp + 0x14], ebp
jmp 0x5fad86
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebp
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x2c], 0
test ebp, ebp
je 0x5faded
jmp 0x5fadbc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 0x14], 0
mov edi, dword [ebp + 0xc]
jne 0x5fae2a
test edi, edi
jne 0x5fae30
push 0x5fa610
push 0x6904d8
call fcn.005fa300
mov eax, dword [0x686c00]
add esp, 8
cmp eax, 0xffffffff
je 0x5faded
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x2c], 0xffffffff
test ebp, ebp
je 0x5fae16
lea eax, [ebp + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x5fae16
mov eax, dword [ebp]
push 0
mov ecx, ebp
call dword [eax]
push ebp
push 0
call esi
push eax
call ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
test edi, edi
je 0x5fae68
mov edi, edi
mov eax, dword [edi + 4]
mov dword [ebp + 0xc], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x5fae59
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [edi]
push 0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call ebx
push edi
push 0
call esi
push eax
call ebx
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x5fae30
mov ebx, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
mov esi, dword [ebx]
mov dword [esp + 0x18], eax
cmp esi, ebx
je 0x5fadb0
mov ebp, eax
mov edi, edi
cmp byte [esi + 0xd], 0
mov edi, esi
jne 0x5faec7
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x5faeac
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x5faec7
jmp 0x5faea0
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x5faea0
jmp 0x5faec7
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x5faec5
cmp esi, dword [eax + 8]
jne 0x5faec5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x5faeb5
mov esi, eax
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x5faedb
mov edx, dword [edi + 0x1c]
test edx, edx
je 0x5faedb
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push edi
lea eax, [esp + 0x24]
push eax
mov ecx, ebp
call fcn.0041ddb0
cmp esi, ebx
jne 0x5fae80
mov ebp, dword [esp + 0x14]
jmp 0x5fadb0
Function at 0x5fad40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x5fad40
push 0xffffffffffffffff
push 0x609e28
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x685680]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [0x686c00]
cmp eax, 0xffffffff
jne 0x5fad79
xor ebp, ebp
mov dword [esp + 0x14], ebp
jmp 0x5fad86
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebp
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x2c], 0
test ebp, ebp
je 0x5faded
jmp 0x5fadbc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 0x14], 0
mov edi, dword [ebp + 0xc]
jne 0x5fae2a
test edi, edi
jne 0x5fae30
push 0x5fa610
push 0x6904d8
call fcn.005fa300
mov eax, dword [0x686c00]
add esp, 8
cmp eax, 0xffffffff
je 0x5faded
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x2c], 0xffffffff
test ebp, ebp
je 0x5fae16
lea eax, [ebp + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x5fae16
mov eax, dword [ebp]
push 0
mov ecx, ebp
call dword [eax]
push ebp
push 0
call esi
push eax
call ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
test edi, edi
je 0x5fae68
mov edi, edi
mov eax, dword [edi + 4]
mov dword [ebp + 0xc], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x5fae59
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [edi]
push 0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call ebx
push edi
push 0
call esi
push eax
call ebx
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x5fae30
mov ebx, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
mov esi, dword [ebx]
mov dword [esp + 0x18], eax
cmp esi, ebx
je 0x5fadb0
mov ebp, eax
mov edi, edi
cmp byte [esi + 0xd], 0
mov edi, esi
jne 0x5faec7
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x5faeac
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x5faec7
jmp 0x5faea0
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x5faea0
jmp 0x5faec7
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x5faec5
cmp esi, dword [eax + 8]
jne 0x5faec5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x5faeb5
mov esi, eax
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x5faedb
mov edx, dword [edi + 0x1c]
test edx, edx
je 0x5faedb
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push edi
lea eax, [esp + 0x24]
push eax
mov ecx, ebp
call fcn.0041ddb0
cmp esi, ebx
jne 0x5fae80
mov ebp, dword [esp + 0x14]
jmp 0x5fadb0
Function at 0x4030dc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
push eax
pop esi
mov eax, ebx
call fcn.00404da0
test esi, esi
jne 0x403112
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
push eax
pop ecx
push esp
pop edx
push ebx
pop eax
call fcn.00404e90
jmp 0x403130
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
push edi
pop eax
call fcn.00402fe0
push eax
pop edi
or esi, esi
je 0x403130
cmp dword [ebx], 0
je 0x403130
dec esi
jmp 0x403119
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x404c20
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x493048], 0
je 0x404c81
cmp word [0x49321c], 0xd7b2
jne 0x404c49
cmp dword [0x493224], 0
jbe 0x404c49
mov eax, 0x493218
call dword [0x493234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404ca8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x49002c], 0
jne 0x404c9d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404cac
Capabilities:
Packed with generic packer

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, 0x4957c4
mov edi, 0x493044
cmp byte [ebx + 0x28], 0
jne 0x404cd4
cmp dword [edi], 0
je 0x404cd4
mov eax, dword [edi]
push eax
pop esi
xor eax, eax
mov dword [edi], eax
call esi
cmp dword [edi], 0
jne 0x404cc5
cmp dword [0x490004], 0
je 0x404cee
call fcn.00404b8c
call fcn.00404c20
sub eax, eax
mov dword [0x490004], eax
cmp byte [ebx + 0x28], 2
jne 0x404d02
cmp dword [section..data], 0
jne 0x404d02
xor eax, eax
mov dword [ebx + 0xc], eax
call fcn.00404a18
cmp byte [ebx + 0x28], 1
jbe 0x404d16
cmp dword [section..data], 0
je 0x404d39
mov edi, dword [ebx + 0x10]
test edi, edi
je 0x404d39
push edi
pop eax
call fcn.00406500
mov ebp, dword [ebx + 0x10]
mov esi, dword [ebp + 0x10]
cmp esi, dword [ebp + 4]
je 0x404d39
test esi, esi
je 0x404d39
push esi
call sub.kernel32.dll_FreeLibrary
call fcn.004049f0
cmp byte [ebx + 0x28], 1
jne 0x404d47
call dword [ebx + 0x24]
cmp byte [ebx + 0x28], 0
je 0x404d52
call fcn.00404bf0
cmp dword [ebx], 0
jne 0x404d71
cmp dword [0x493024], 0
je 0x404d66
call dword [0x493024]
mov eax, dword [section..data]
push eax
call sub.kernel32.dll_ExitProcess
mov eax, dword [ebx]
push eax
pop esi
mov edi, ebx
push 0xb
pop ecx
pushal
popal
rep movsd dword es:[edi], dword [esi]
jmp 0x404cee