joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421d1c
Capabilities:
Read .ini file

Disassembly:
push 0x23c
mov eax, 0x442d95
call fcn.0043d71c
mov ebx, ecx
call fcn.00420886
lea edi, [ebx + 0xd4]
push eax
mov ecx, edi
call fcn.0042034b
mov esi, 0x444a3c
push esi
call fcn.004316ea
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00405910
push str.Hapygf
push 0x44bec4
push str.AppInfo
lea eax, [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.00420961
and dword [ebp - 4], 0
lea esi, [ebx + 0xec]
lea eax, [ebp - 0x248]
cmp esi, eax
je 0x421d92
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00405a40
push str.Hapygf
mov ecx, esi
call fcn.00422137
test eax, eax
jne 0x421e0e
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00429120
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x421dbf
mov edi, dword [edi]
push edi
push 0x104
lea eax, [ebp - 0x218]
mov edi, str.Hapygf
push eax
push edi
push 0x44bec4
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x218], 0
jne 0x421df0
xor eax, eax
jmp 0x421dfd
lea eax, [ebp - 0x218]
push eax
call fcn.004316ea
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00405b60
jmp 0x421e13
mov edi, str.Hapygf
push edi
mov ecx, esi
call fcn.00422137
test eax, eax
jne 0x421ed6
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00429120
add esp, 0xc
lea eax, [ebx + 0x5c]
lea ecx, [ebp - 0x230]
push eax
call fcn.0040ba10
push 0x444a3c
mov byte [ebp - 4], 1
call fcn.004316ea
pop ecx
push eax
push 0x444a3c
lea ecx, [ebp - 0x230]
call fcn.00405910
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
push 0x44bec4
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x218], 0
jne 0x421ea7
xor eax, eax
jmp 0x421eb4
lea eax, [ebp - 0x218]
push eax
call fcn.004316ea
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00405b60
push 0
push 1
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0
call fcn.00405650
push edi
mov ecx, esi
call fcn.00422137
test eax, eax
jne 0x421f12
push edi
push 0x44bec4
push str.AppInfo
lea eax, [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.004209b5
push eax
mov ecx, esi
call fcn.0040f690
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.00405650
push 0
push 1
lea ecx, [ebp - 0x248]
call fcn.00405650
call fcn.0043d6d7
ret
Function at 0x422287
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.004316ea
mov dword [ebp - 0xc], eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041e98c
push dword [ebp + 8]
mov dword [ebp - 4], eax
push eax
call fcn.004316c8
add esp, 0x10
call fcn.00424ec4
test al, al
je 0x4222e1
push eax
push esp
push edx
push edi
pop edx
pop esp
pop edi
push eax
push ebx
push esp
pop esi
pop ecx
pop ebx
push esp
push edi
push ebp
push edx
pop ebp
push esp
push ecx
pop edi
push edi
pop ecx
push ecx
pop ebx
call fcn.00424f4e
test al, al
je 0x422300
pop eax
pop edx
push esi
pop ebp
pop ebp
pop ebp
push eax
pop ebp
push edi
pop eax
pop ecx
push edx
push ebp
pop esp
pop eax
pop ecx
pop ebp
pop ecx
pop ebp
pop esi
pop ebp
push eax
call fcn.00425176
test al, al
je 0x42231c
push esi
push ecx
push esi
push edi
push esp
pop edx
push esi
push ebp
pop ecx
pop eax
pop ebx
pop edi
push ebx
push esi
push esp
pop esi
pop edx
push esp
pop edx
mov eax, dword [ebp - 0xc]
xor esi, esi
xor ebx, ebx
inc esi
mov dword [ebp - 8], ebx
test eax, eax
js 0x4223c4
mov esi, dword [ebp - 4]
cmp word [esi + ebx*2], 0x5c
jne 0x4223b5
call fcn.004250ec
test al, al
je 0x422360
push ecx
push esp
push esi
push ebx
push edx
pop esi
pop ebx
pop esp
pop edi
pop eax
pop esi
pop edx
pop esp
pop esi
pop esp
pop ebp
push ebx
pop edi
pop edx
pop ebx
pop esi
push eax
pop ecx
push ebx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
call fcn.004250ec
test al, al
je 0x42238d
push edi
pop ecx
push ecx
pop esi
push ebx
pop ebp
push edx
pop esp
pop esi
push edx
pop ebx
push ecx
push esp
pop ebp
pop edi
pop edi
pop ebp
pop edi
pop esp
pop ecx
push edx
pop edx
push ecx
push esp
pop eax
pop ebp
push esp
push eax
push esp
pop edi
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
movzx edi, word [esi + ebx*2]
xor eax, eax
push esi
mov word [esi + ebx*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4223ae
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4223d6
mov eax, dword [ebp - 0xc]
mov word [esi + ebx*2], di
inc ebx
mov dword [ebp - 8], ebx
cmp ebx, eax
jle 0x422332
xor esi, esi
inc esi
push dword [ebp - 4]
call fcn.0041e995
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
jmp 0x4223c4
Function at 0x4223da
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x462524]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x218], eax
xor eax, eax
push eax
push 0x1a
push ecx
push eax
mov dword [ebp - 0x210], ebx
call fcn.00422e1b
lea eax, [ebp - 0x20c]
push eax
call fcn.004316ea
add esp, 0x14
mov dword [ebp - 0x214], eax
call fcn.00424ec4
test al, al
je 0x422448
push esp
pop eax
pop edi
push ebx
push ecx
pop esi
pop eax
pop edx
pop edx
push esp
pop eax
pop esp
pop ebx
push edx
pop ecx
pop edi
mov ebx, dword [ebp - 0x210]
cmp dword [ebp - 0x214], 0
je 0x422572
mov esi, 0x44501c
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00431657
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00431657
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00431657
add esp, 0x18
call fcn.00424db0
test al, al
je 0x4224a4
pop edx
push ebx
push edx
push ecx
push esi
push ebp
pop esi
push edx
push esp
push ecx
pop esi
pop eax
pop ebx
push eax
pop ebp
push edx
pop edx
push eax
pop ebp
push ebx
push ecx
pop ebx
push ebx
call fcn.00424c57
test al, al
je 0x4224c3
pop ebp
pop esp
push edi
push eax
push ebp
push edx
pop edi
push edx
pop ebp
push esi
push ecx
pop edi
pop esp
pop edi
pop eax
pop esi
pop ebx
pop esi
pop esi
pop esi
push edx
pop esi
call fcn.00424f4e
test al, al
je 0x4224ec
push edi
pop edx
push edi
pop esi
pop ecx
push esi
pop esi
push eax
push ecx
pop esp
pop ecx
pop eax
pop ebp
pop ecx
push ebx
pop ebp
pop ecx
push eax
pop edi
push ebp
push ecx
pop ecx
push ebx
push esi
pop esi
push esi
push ecx
pop esi
pop edi
pop eax
pop esi
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42250a
lea eax, [ebp - 0x20c]
push eax
call fcn.00422287
pop ecx
call fcn.00424fd8
test al, al
je 0x422524
pop ebx
pop esi
pop esi
push esi
pop eax
push esi
push eax
pop edx
push ecx
pop ecx
pop ebx
push edi
push ebx
pop ebx
push esi
pop esp
pop ebp
call fcn.00425359
test al, al
je 0x422544
pop edi
pop ecx
pop ebx
pop edx
pop esi
pop ebp
push esi
push edi
pop edi
push edi
pop edx
push ebx
push esi
pop eax
pop ebp
push ebp
push edi
push ebx
pop esi
pop edi
push ecx
push eax
pop ebx
cmp word [ebp - 0x20c], 0
jne 0x422552
xor eax, eax
jmp 0x42255f
lea eax, [ebp - 0x20c]
push eax
call fcn.004316ea
pop ecx
mov ecx, dword [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00405b60
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e99a
mov esp, ebp
pop ebp
ret
Function at 0x4227cc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x462524]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x4656ac], 0
push ebx
push esi
push edi
je 0x42282e
call fcn.00424fd8
test al, al
je 0x422805
pop ebx
pop esi
pop esi
push esi
pop eax
push esi
push eax
pop edx
push ecx
pop ecx
pop ebx
push edi
push ebx
pop ebx
push esi
pop esp
pop ebp
call fcn.00425359
test al, al
je 0x422973
pop edi
pop ecx
pop ebx
pop edx
pop esi
pop ebp
push esi
push edi
pop edi
push edi
pop edx
push ebx
push esi
pop eax
pop ebp
push ebp
push edi
push ebx
pop esi
pop edi
push ecx
push eax
pop ebx
jmp 0x422973
call fcn.0042501d
test al, al
je 0x422855
push edi
push edi
push ebp
pop edi
push esi
pop ebx
pop ecx
push ecx
push edi
push esp
pop ecx
pop esi
pop esp
push esi
pop esi
push ecx
push esi
pop edi
pop esi
pop ebp
push edx
push eax
pop edx
pop edx
push edi
push edx
push edi
push esi
pop ebp
pop esi
call fcn.00425245
test al, al
je 0x422872
push esp
pop esp
push esp
pop edx
push edx
pop edi
pop edi
pop eax
push ebx
push ecx
pop ecx
push ebx
push ebx
pop edi
pop ebp
pop ebx
push ecx
push edi
pop ebp
push edi
call fcn.004251bb
test al, al
je 0x42289a
pop esi
pop esp
pop edi
push edx
push ecx
push edi
push edi
pop ecx
push eax
push ebx
push ebp
push eax
push eax
pop ebx
push esp
pop ecx
push esp
pop ecx
pop ebx
push esp
pop edx
pop edx
push ecx
pop edi
pop edi
push ebp
pop esi
pop esi
push ebx
pop eax
pop esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00429120
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x42290a
lea eax, [ebp - 0x20c]
push eax
call fcn.004318ae
lea eax, [ebp - 0x20c]
mov dword [esp], str.config_systemprofile
push eax
call fcn.00429aad
pop ecx
pop ecx
test eax, eax
jne 0x422903
lea eax, [ebp - 0x20c]
push str.documents_and_settingslocalservice
push eax
call fcn.00429aad
pop ecx
pop ecx
test eax, eax
je 0x42290a
mov byte [0x4656ac], 1
call fcn.00424d6b
test al, al
je 0x422931
push ebp
pop ebp
pop edi
push edx
pop ebx
push esi
pop ecx
pop edi
pop edi
pop esp
pop eax
push ecx
push ecx
pop esi
push edi
push edx
push esi
pop esp
push eax
pop ebp
push edi
push esi
pop ecx
pop ebp
pop eax
push esp
pop ecx
pop edi
pop eax
pop esp
call fcn.00424c9c
test al, al
je 0x42294e
pop esi
pop ebx
pop ecx
pop edx
pop edx
push eax
pop ebp
pop ebp
push esi
push ebp
push ebx
pop edx
push edx
push esp
pop edx
push edi
pop ebx
pop edx
pop ecx
push ecx
call fcn.00425314
test al, al
je 0x422973
push eax
pop edi
pop edi
pop ecx
push edx
pop edx
push eax
push esi
pop esi
pop eax
push esi
push edx
push edi
push ebp
pop esi
push esi
pop ecx
push ebp
pop esp
push edx
push ecx
pop edi
pop esp
pop edi
pop ebp
push ebp
push ecx
push esi
mov ecx, dword [ebp - 4]
mov al, byte [0x4656ac]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0041e99a
mov esp, ebp
pop ebp
ret
Function at 0x423eee
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
call fcn.00424f93
test al, al
je 0x423f15
push ebx
pop eax
pop edx
pop ebp
pop edi
push edi
pop edi
push eax
push esp
push edi
pop esi
pop ebx
pop esi
pop eax
push ebp
pop ebx
push esi
push ecx
pop edx
pop ebx
call fcn.00424f93
test al, al
je 0x423f36
push esi
push edx
push edi
push eax
pop esi
push edx
push esp
pop esp
push edx
pop edi
pop edi
push ebp
pop edx
pop eax
push ecx
pop ebx
push ecx
pop ecx
push eax
pop esi
push ebx
push ebp
pop esp
push ebx
push dword [ebp + 8]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, dword [ebp - 4]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
pop edi
sbb eax, eax
inc eax
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x424408
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x89], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x42572d
Capabilities:
Enumerate processes

Disassembly:
push 0x280
mov eax, 0x442ff5
call fcn.0043d71c
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x28c], ebx
test eax, eax
je 0x42591b
push eax
lea ecx, [ebp - 0x40]
call fcn.00402f80
and dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
call fcn.00426b4e
mov dword [esp], 0x22c
lea eax, [ebp - 0x284]
push 0
push eax
call fcn.00429120
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x28c], edi
cmp edi, 0xffffffff
je 0x42590b
call fcn.00424fd8
test al, al
je 0x4257b0
pop ebp
push ecx
push ebp
push esi
pop ecx
push ebp
pop ebp
push ebp
push edi
push edx
push edx
pop esi
push ecx
pop esi
push ebx
push edx
lea eax, [ebp - 0x284]
mov dword [ebp - 0x284], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x42588c
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp word [ebp - 0x260], ax
je 0x4257f3
lea eax, [ebp - 0x260]
push eax
call fcn.004316ea
pop ecx
push eax
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x28]
call fcn.00405b60
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.00426b4e
pop ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00420372
test eax, eax
je 0x425847
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00426942
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x40]
or ebx, 1
call fcn.00420372
mov byte [ebp - 0x285], 0
test eax, eax
jne 0x42584e
mov byte [ebp - 0x285], 1
test bl, 1
je 0x425862
push 0
push 1
lea ecx, [ebp - 0x58]
and ebx, 0xfffffffe
call fcn.00405650
cmp byte [ebp - 0x285], 0
jne 0x425921
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00405650
lea eax, [ebp - 0x284]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4257cc
call fcn.00424e7f
test al, al
je 0x4258b7
pop esp
pop esi
pop ecx
pop edx
pop edx
push ebx
push edx
push ebp
pop ecx
pop ebp
pop eax
pop esi
push ebx
pop esp
pop eax
push ebp
push esi
push esp
pop eax
push esi
push ebx
push eax
push esp
pop ecx
pop edi
push ebx
call fcn.00424f09
test al, al
je 0x4258d6
push eax
pop esi
pop edx
push ebp
pop ebx
push ebx
pop eax
push ebx
push ebx
push eax
push edx
push esp
pop ecx
pop esi
push ebx
pop edi
push ebx
push ebx
push esp
pop ebp
pop esi
pop esp
call fcn.0042501d
test al, al
je 0x4258ff
push edi
push eax
pop ebx
pop ebx
push esp
pop ecx
push esi
pop eax
push edx
pop ecx
pop edi
push esp
pop esp
pop edx
push ebx
pop edx
push esi
pop ebx
push ecx
push eax
pop edi
pop eax
pop eax
pop edi
pop esi
push ebx
pop ecx
push ebp
push edx
pop ebp
push ebp
push ebp
push dword [ebp - 0x28c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00405650
mov eax, esi
call fcn.0043d6d7
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x27c]
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.00405650
jmp 0x42590d
Function at 0x43507f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00434efe
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x402a96
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x404610
call 0x495000
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x4064a0
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x402835
cmp eax, esi
jne 0x402828
xor esi, esi
inc esi
mov ebx, esi
jmp 0x402838
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40280f
xor esi, esi
inc esi
mov eax, dword [0x40649c]
cmp eax, esi
jne 0x40284b
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x40287a
mov eax, dword [0x40649c]
test eax, eax
jne 0x402874
mov dword [0x40649c], esi
push 0x404250
push 0x404248
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40287a
jmp 0x4029a2
mov dword [0x4060d4], esi
mov eax, dword [0x40649c]
cmp eax, esi
jne 0x40289e
push 0x404244
push 0x404230
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x40649c], 2
test ebx, ebx
jne 0x4028aa
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x4064ac], 0
je 0x4028ce
push 0x4064ac
call fcn.00402da2
pop ecx
test eax, eax
je 0x4028ce
push 0
push 2
push 0
call dword [0x4064ac]
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x40292a
test al, al
je 0x4028e8
cmp dword [ebp - 0x1c], 0
jne 0x40292a
mov al, byte [esi]
test al, al
je 0x4028f8
cmp al, 0x20
ja 0x4028f8
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4028e8
test byte [ebp - 0x3c], 1
je 0x402904
movzx eax, word [ebp - 0x38]
jmp 0x402907
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call main
mov dword [0x4060d0], eax
cmp dword [0x4060c4], 0
jne 0x40297e
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp al, 0x22
jne 0x402939
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
je 0x40294c
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x4028d5
cmp dword [0x4060d4], 0
jne 0x40298d
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x4060d0]
jmp 0x4029ae
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00402be9
ret
call fcn.004026b1
jmp 0x4027d5
Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40701c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x407028
push 0x407024
push 0x407020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x407028]
push dword [0x407024]
push dword [0x407020]
mov dword [0x407014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x84], 0
call fcn.004019f0
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, edi
or al, 0x40
push eax
lea eax, [0x404731]
lea edx, [fcn.00401a74]
sub eax, edx
push eax
push fcn.00401a74
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x40132d
push edi
call fcn.004018e0
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.0040192f
mov eax, edi
add eax, 0x1e200
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov esi, dword [ebp - 0x88]
mov ecx, edi
sar esi, cl
push esi
lea esi, [0x4070e4]
mov ebx, edi
dec ebx
and esi, ebx
push esi
call fcn.00401a74
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4019f0
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push edi
and dword [ebp - 0x120], 0
xor edi, edi
push 0
push 0
call sub.USER32.DLL_GetWindowLongA
push 0
push 0
call sub.USER32.DLL_GetDlgItem
push 0
push 0
push 0
push 0
call sub.USER32.DLL_GetDlgItemInt
mov dword [ebp - 0x11c], 0x14
mov byte [ebp - 0x104], 0
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x118]
push eax
push 1
push 1
lea eax, [ebp - 0x104]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringW
movzx eax, word [ebp - 0x118]
mov edi, eax
sub edi, 0x41
mov eax, edi
pop edi
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
nop
mov ecx, 0x571d0f05
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x2ca06955
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x403d88
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x42fd0f
call fcn.0041c478
mov ebx, ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
test esi, esi
jne 0x403daa
mov al, 1
jmp 0x403ee6
cmp dword [ebx + 0x10], 1
lea ecx, [ebx + 8]
mov dword [ebp - 0x34], ecx
jne 0x403dc8
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebx + 8]
mov dword [ecx], eax
jmp 0x403eaf
mov dword [ebp - 0x34], ecx
and dword [ebp - 0x30], 0
xor dl, dl
cmp dword [ebx + 0x10], 0
mov byte [ebp - 0x29], dl
je 0x403e1f
xor edi, edi
test esi, esi
je 0x403e3f
mov eax, esi
mov edx, 0x4000
sub eax, edi
cmp eax, edx
jb 0x403def
mov eax, edx
push 0
lea edx, [ebp - 0x30]
push edx
push eax
mov eax, dword [ebp - 0x38]
add eax, edi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne dl
mov byte [ebp - 0x29], dl
test eax, eax
je 0x403e37
mov ecx, dword [ebp - 0x34]
add edi, 0x4000
cmp edi, esi
jb 0x403de0
jmp 0x403e37
push 0
lea edx, [ebp - 0x30]
push edx
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne dl
mov byte [ebp - 0x29], dl
test dl, dl
jne 0x403edf
cmp byte [ebx + 0x1e], 0
je 0x403edf
cmp dword [ebx + 0x10], 0
jne 0x403edf
push 0
lea edi, [ebx + 0x34]
mov ecx, 0x45b4e8
push edi
call fcn.00402d73
test al, al
je 0x403eb7
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x30], esi
jae 0x403dcb
cmp dword [ebp - 0x30], 0
jbe 0x403dcb
mov edi, dword [ebx]
push 0
mov esi, dword [edi + 0x14]
mov ecx, esi
call dword [0x43224c]
mov ecx, ebx
call esi
sub eax, dword [ebp - 0x30]
mov ecx, dword [edi + 0x10]
sbb edx, 0
push edx
push eax
call dword [0x43224c]
mov ecx, ebx
call dword [edi + 0x10]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
jmp 0x403dcb
push 0x432668
lea ecx, [ebp - 0x28]
call fcn.004014a3
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push edi
push eax
mov ecx, 0x45b4e8
call fcn.00403183
lea ecx, [ebp - 0x28]
call fcn.00401770
mov al, byte [ebp - 0x29]
mov byte [ebx + 0xc], 1
call fcn.0041c427
ret 8