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

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100ae405
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.100ac472
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.100ac44a
jmp 0x100ae411
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x100afbc9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x100afc0b
call fcn.100b5f12
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x100afc0b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x100afc02
xor eax, eax
jmp 0x100afc13
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.100afc19
pop edi
pop esi
pop ebx
ret 4
Function at 0x403260
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x415008], 0x8088405
inc edx
mov dword [ebx + 0x415008], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0x10001240
Capabilities:
Create thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10006568
push eax
mov dword fs:[0], esp
push ebx
push esi
mov esi, dword [esp + 0x18]
lea ebx, [esi + 0x10]
push ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test eax, eax
je 0x100012d9
cmp eax, 0xffffffff
je 0x100012d9
mov dword [esi + 0x3c], eax
mov dword [esi + 0x38], 1
mov ecx, dword [0x100071ec]
lea eax, [esi + 0x60]
mov dword [esi + 0x60], ecx
mov edx, dword [0x100071f0]
mov dword [eax + 4], edx
mov ecx, dword [0x100071f4]
mov dword [eax + 8], ecx
mov edx, dword [0x100071f8]
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x10001340
lea eax, [esp + 0x18]
push eax
push 0
push esi
push 0x100016b0
push 0x800
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x44], eax
jmp 0x10001340
mov ecx, dword [esi + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x44]
test eax, eax
je 0x1000132e
push 0x190
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x44], 0
mov ecx, dword [0x100071ec]
lea eax, [esi + 0x60]
mov dword [esi + 0x60], ecx
mov edx, dword [0x100071f0]
mov dword [eax + 4], edx
mov ecx, dword [0x100071f4]
mov dword [eax + 8], ecx
mov edx, dword [0x100071f8]
mov dword [eax + 0xc], edx
mov esi, dword [esi + 0x2c]
push 0
push section..shared
push 1
mov eax, dword [esi]
push esi
call dword [eax + 0x34]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
xor eax, eax
mov ecx, dword [esp + 4]
pop ebx
mov dword fs:[0], ecx
add esp, 0xc
ret 8
Function at 0x100016c0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x14
mov eax, dword [ecx + 0x74]
push edi
xor edi, edi
mov dword [esp + 0x14], ecx
cmp eax, edi
mov dword [esp + 4], edi
jne 0x100016dc
xor eax, eax
pop edi
add esp, 0x14
ret
lea ecx, [esp + 4]
push ecx
push 0xf003f
push edi
push 0x1000b0d4
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [esp + 4]
cmp eax, edi
je 0x100017b9
lea edx, [esp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
push edx
push ecx
push edi
push edi
push 0x1000b0c4
push eax
mov dword [esp + 0x2c], 1
mov dword [esp + 0x24], 4
call esi
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push 0x1000b0b4
push ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 4
call esi
mov eax, dword [esp + 0x10]
pop esi
dec eax
je 0x10001770
mov edx, dword [esp + 4]
xor edi, edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
add esp, 0x14
ret
test byte [esp + 0x10], 1
je 0x10001783
mov edx, dword [esp + 0x14]
mov edi, 1
mov dword [edx + 0x70], edi
mov ecx, dword [esp + 4]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push 0x1000b0b4
push ecx
mov dword [esp + 0x24], 5
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
add esp, 0x14
ret
Function at 0x10002156
Capabilities:
Accept command line arguments
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x1000223e
mov eax, 0x94
call fcn.10003720
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x100022b3
mov ecx, dword [esi + 0x10]
mov dword [0x10009900], ecx
mov eax, dword [esi + 4]
mov dword [0x1000990c], eax
mov edx, dword [esi + 8]
mov dword [0x10009910], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x10009904], esi
je 0x100021c1
or esi, 0x8000
mov dword [0x10009904], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x10009908], eax
call fcn.10004007
test eax, eax
pop ecx
je 0x100022b3
call fcn.10002ee8
test eax, eax
jne 0x100021ee
call fcn.10004058
jmp 0x100022b3
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1000a0d4], eax
call fcn.10003ec7
mov dword [0x100098dc], eax
call fcn.1000398f
test eax, eax
jl 0x10002237
call fcn.10003e25
test eax, eax
jl 0x10002232
call fcn.10003bd9
test eax, eax
jl 0x10002232
call fcn.1000378d
test eax, eax
jne 0x10002232
inc dword [0x100098d8]
jmp 0x100022c4
call fcn.10003b8d
call fcn.10002cdb
jmp 0x100021e4
test eax, eax
jne 0x1000226e
cmp dword [0x100098d8], eax
jle 0x100022b3
dec dword [0x100098d8]
cmp dword [0x1000993c], eax
jne 0x1000225d
call fcn.100038bd
call fcn.10003b8d
call fcn.10002cdb
call fcn.10004058
jmp 0x100022c4
cmp eax, 2
jne 0x100022b7
push 0x88
push 1
call fcn.100038cc
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x100022b3
push esi
push dword [0x1000901c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
push esi
je 0x100022ad
call fcn.10002cf9
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x100022c4
call fcn.1000239f
pop ecx
xor eax, eax
jmp 0x100022c7
cmp eax, 3
jne 0x100022c4
push 0
call fcn.10002d7d
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x10003065
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.10003720
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100030fa
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x10009900]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x100030fa
cmp eax, 1
je 0x10003112
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100030fa
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x100030cf
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x100030f6
xor eax, eax
inc eax
jmp 0x1000312e
cmp esi, ebx
jae 0x100030fe
xor eax, eax
jmp 0x1000312e
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x10009900]
jmp 0x10003114
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100040d7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
xor eax, eax
cmp edx, dword [eax*8 + 0x100091e8]
je 0x100040f7
inc eax
cmp eax, 0x12
jb 0x100040e8
shl eax, 3
cmp edx, dword [eax + 0x100091e8]
mov dword [ebp + 8], eax
jne 0x10004295
mov ecx, dword [0x100098e4]
cmp ecx, 1
je 0x1000426a
test ecx, ecx
jne 0x10004129
cmp dword [0x100098e8], 1
je 0x1000426a
cmp edx, 0xfc
je 0x10004295
and byte [ebp - 8], 0
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10004164
push 5
pop ecx
mov esi, str._program_name_unknown_
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x10c]
lea ebx, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10004173
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x100041ab
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000418b
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x100078c0
push ebx
call fcn.10005a60
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100041b0
sub eax, edx
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x100091ec]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100041c7
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.10003720
mov edx, esp
push 6
pop ecx
mov esi, str.Runtime_Error__n_nProgram:
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100041f3
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100041ff
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10004218
mov eax, dword [ebp + 8]
mov esi, 0x100078a0
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x100091ec]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10004233
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1000423f
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.10005f17
add esp, 0xc
jmp 0x10004295
mov ecx, dword [eax + 0x100091ec]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10004275
push 0
lea edx, [ebp - 4]
push edx
sub eax, esi
push eax
push ecx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10005f17
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x10009c34], ebx
push esi
push edi
jne 0x10005f97
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10005fd2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x10009c34], eax
je 0x10005fd2
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x10009c38], eax
call esi
cmp dword [0x10009900], 2
mov dword [0x10009c3c], eax
jne 0x10005f97
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x10009c44], eax
je 0x10005f97
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x10009c40], eax
mov eax, dword [0x10009c40]
test eax, eax
je 0x10005fdc
call eax
test eax, eax
je 0x10005fc3
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x10009c44]
test eax, eax
je 0x10005fc3
test byte [ebp - 8], 1
jne 0x10005fdc
cmp dword [0x1000990c], 4
jb 0x10005fd6
or byte [ebp + 0x12], 0x20
jmp 0x10005ffb
xor eax, eax
jmp 0x1000600b
or byte [ebp + 0x12], 4
jmp 0x10005ffb
mov eax, dword [0x10009c38]
test eax, eax
je 0x10005ffb
call eax
mov ebx, eax
test ebx, ebx
je 0x10005ffb
mov eax, dword [0x10009c3c]
test eax, eax
je 0x10005ffb
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x10009c34]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4013b2
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
and dword [ebp - 0x10], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x10]
push edi
mov dword [ebp - 0x34], esi
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [0x41a318]
mov dword [ebp - 0x24], eax
mov eax, dword [0x41a31c]
mov dword [ebp - 0x2c], eax
call fcn.004013ab
mov edi, dword [ebp - 0x10]
mov ecx, dword [0x41a320]
add edi, 0x23f
mov eax, dword [0x41a324]
push 0x20
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x20], eax
pop esi
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov edx, dword [ebp - 0x14]
mov eax, edx
shl eax, 4
add eax, ecx
mov dword [ebp - 0x1c], 0xedeb2e40
cmp dword [0x4762c8], 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x4762c4]
cmove eax, dword [ebp - 0x1c]
and dword [ebp - 0x1c], 0
cmp dword [0x4762c8], 0x3eb
mov dword [0x4762c4], eax
mov eax, dword [0x475d50]
cmove eax, dword [ebp - 0x1c]
mov dword [0x475d50], eax
lea eax, [edi + edx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x20]
xor eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 4]
sub ebx, eax
mov dword [ebp - 8], eax
mov eax, ebx
mov dword [0x4762c0], 0xf4ea3dee
shl eax, 4
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
nop
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
mov eax, ebx
shr eax, cl
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x30]
add edi, 0x61c88647
mov dword [ebp - 0x10], edi
dec esi
jne 0x401404
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
pop edi
mov dword [esi + 4], ebx
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d1f4
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419428]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00406eab
mov dword [ebp - 0x14], eax
cmp dword [0x430a5c], esi
jne 0x40d2e7
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d274
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d3c7
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d3c7
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d3c7
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x430a5c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x430a60], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x430a64], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x430a6c], eax
test eax, eax
je 0x40d2e4
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x430a68], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d30c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d2ff
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d321
push 4
pop eax
jmp 0x40d3c9
cmp dword [ebp - 0x14], esi
je 0x40d321
push dword [0x430a5c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d306
mov eax, dword [0x430a68]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d37f
cmp dword [0x430a6c], edi
je 0x40d37f
push eax
call ebx
push dword [0x430a6c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d37f
test eax, eax
je 0x40d37f
call ecx
test eax, eax
je 0x40d374
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 0x40d374
test byte [ebp - 8], 1
jne 0x40d37f
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d3af
mov eax, dword [0x430a60]
cmp eax, edi
je 0x40d3ac
push eax
call ebx
test eax, eax
je 0x40d3ac
call eax
mov esi, eax
test esi, esi
je 0x40d3ac
mov eax, dword [0x430a64]
cmp eax, edi
je 0x40d3ac
push eax
call ebx
test eax, eax
je 0x40d3ac
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x430a5c]
call ebx
test eax, eax
je 0x40d3c7
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d3c9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403d90
mov esp, ebp
pop ebp
ret
Function at 0x4067c9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4067ee
mov eax, dword [0x40a928]
cmp eax, 0xffffffff
je 0x4067e5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a928], 0xffffffff
jmp 0x406861
cmp dword [0x440ae0], ebx
je 0x406861
cmp byte [0x4406e0], bl
je 0x40682d
cmp dword [0x40a928], 0xffffffff
jne 0x406836
push 4
push 0x40000000
push 0x4406e0
call fcn.0040617d
cmp eax, 0xffffffff
mov dword [0x40a928], eax
je 0x406861
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a928], 0xffffffff
je 0x406861
push esi
mov esi, 0x444b00
push 0x40ab70
push esi
call fcn.004064cb
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.004064be
push eax
push esi
push dword [0x40a928]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x406a13
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x4402dc], esi
push edi
jne 0x406a4d
mov ecx, 0x4402d8
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x406a29
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x4406d8
jl 0x406a24
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406a82
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4402d8]
xor eax, esi
inc ecx
dec edx
jne 0x406a65
pop edi
pop esi
not eax
ret 0xc

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

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x408ed0
nop
mov ecx, 0x6c694286
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x693d0117
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x5b0c50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x577015
lea edi, [esi - 0x176015]
push edi
or ebp, 0xffffffff
jmp 0x5b0c72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5b0c79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5b0c68
mov eax, 1
add ebx, ebx
jne 0x5b0c8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5b0c9c
jne 0x5b0cbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5b0cbb
dec eax
add ebx, ebx
jne 0x5b0ca8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5b0c80
add ebx, ebx
jne 0x5b0cb7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5b0d0d
xor ecx, ecx
sub eax, 3
jb 0x5b0cd3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5b0d42
sar eax, 1
mov ebp, eax
jmp 0x5b0cde
add ebx, ebx
jne 0x5b0cde
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5b0cac
inc ecx
add ebx, ebx
jne 0x5b0cec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5b0cac
add ebx, ebx
jne 0x5b0cf9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5b0cee
jne 0x5b0d0a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5b0cee
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5b0d2c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5b0d1e
jmp 0x5b0c6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5b0d2c
add edi, ecx
jmp 0x5b0c6e
pop esi
mov edi, esi
mov ecx, 0x7ac6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5b0d4a
cmp byte [edi], 9
jne 0x5b0d4a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5b0d4f
lea edi, [esi + 0x1ae000]
mov eax, dword [edi]
or eax, eax
je 0x5b0dc7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1b054c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1b0588]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5b0d7c
mov ecx, edi
jns 0x5b0dab
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1b0590]
or eax, eax
je 0x5b0dc1
mov dword [ebx], eax
add ebx, 4
jmp 0x5b0d99
call dword [esi + 0x1b058c]
mov ebp, dword [esi + 0x1b0594]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5b0dfb
sub esp, 0xffffff80
jmp 0x4024d8