joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41aead
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x437680
cmp edx, dword [eax]
je 0x41aecf
add eax, 8
inc ecx
cmp eax, 0x437710
jl 0x41aec0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x437680]
jne 0x41affd
mov eax, dword [0x43adc8]
cmp eax, 1
je 0x41afd7
test eax, eax
jne 0x41af00
cmp dword [0x436d60], 1
je 0x41afd7
cmp edx, 0xfc
je 0x41affd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41af37
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00414370
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00413c90
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41af7a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00413c90
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42cbd4
push edi
call fcn.00413f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00414370
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00414380
lea eax, [ebp - 0xa0]
push 0x42cbb4
push eax
call fcn.00414380
push dword [esi + 0x437684]
lea eax, [ebp - 0xa0]
push eax
call fcn.00414380
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041c94a
add esp, 0x2c
pop edi
jmp 0x41affd
lea eax, [ebp + 8]
lea esi, [esi + 0x437684]
push 0
push eax
push dword [esi]
call fcn.00413c90
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x41fabe
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x41faf6
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.00422477
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0042244f
jmp 0x41fb02
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x421094
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 0x4210d6
call fcn.0042668c
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4210d6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4210cd
xor eax, eax
jmp 0x4210de
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004210e4
pop edi
pop esi
pop ebx
ret 4
Function at 0x4253ab
Capabilities:
Set registry value

Disassembly:
mov eax, 0x428224
call fcn.00416360
push ecx
push ecx
push esi
push 0x10
call fcn.004224b1
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
test esi, esi
je 0x4253f8
mov ecx, esi
call fcn.0042264d
mov eax, dword [0x436874]
lea ecx, [esi + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov dword [esi], vtable.CArchiveException.0
mov dword [esi + 8], eax
call fcn.0042229a
jmp 0x4253fa
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push 0x42eb78
push eax
mov dword [ebp - 0x10], esi
call fcn.0041642e
pop esi

Function at 0x42713f
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 0x42716d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42718b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004270a5
jmp 0x42718b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42718b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004270a5
test edi, edi
mov eax, edi
jne 0x427175
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402590
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc74
push edi
push esi
push ebx
push 0x51550e
push 1
push 0
call fcn.0040943c
mov dword [0x51c932], eax
call fcn.0040949c
or eax, eax
jne 0x402690
push dword [0x51c932]
call fcn.0040941e
push 0x12c
lea eax, [ebp - 0x384]
push eax
push dword [0x51c92e]
call fcn.004094a8
push 0x12c
lea eax, [ebp - 0x12c]
push eax
call fcn.004094ba
lea ecx, [ebp - 0x12c]
cmp byte [eax + ecx - 1], 0x5c
je 0x402602
mov word [eax + ecx], 0x5c
lea eax, [ebp - 0x12c]
push eax
push 0x515769
lea eax, [ebp - 0x258]
push eax
call fcn.00409412
add esp, 0xc
lea eax, [ebp - 0x38c]
push eax
lea eax, [ebp - 0x388]
push eax
lea eax, [ebp - 0x384]
push eax
call fcn.00402760
mov edi, dword [ebp - 0x388]
cmp word [edi], 0x5a4d
jne 0x402655
add edi, dword [edi + 0x3c]
cmp dword [edi], 0x4550
jne 0x402655
xor word [edi + 0x16], 0x2000
push dword [ebp - 0x38c]
push dword [ebp - 0x388]
lea eax, [ebp - 0x258]
push eax
call fcn.004026b0
cmp eax, 0xffffffff
je 0x40267e
lea eax, [ebp - 0x258]
push eax
call fcn.00402710
push 0x8000
push 0
push dword [ebp - 0x388]
call fcn.00409550
push dword [0x51c932]
call fcn.0040941e
xor eax, eax
pop ebx
pop esi
pop edi
leave
ret

Function at 0x4027f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb40
push edi
push esi
push ebx
push 0x51577a
push 0
push 4
call fcn.00409502
or eax, eax
je 0x402868
mov dword [ebp - 0x4bc], eax
push 0
push 0
push 0
push 4
push dword [ebp - 0x4bc]
call fcn.004094fc
mov dword [ebp - 0x4c0], eax
mov ecx, dword [eax]
mov dword [ebp - 0x4b8], ecx
add eax, 4
mov edi, eax
push 0x40
push 0x1000
push dword [ebp - 0x4b8]
push 0
call fcn.0040954a
mov dword [ebp - 0x4b4], eax
push dword [ebp - 0x4b8]
push edi
push dword [ebp - 0x4b4]
call fcn.0040e8ff
jmp 0x402895
push 0x258
lea eax, [ebp - 0x4b0]
push eax
push 0
call fcn.004094a8
lea eax, [ebp - 0x4b8]
push eax
lea eax, [ebp - 0x4b4]
push eax
lea eax, [ebp - 0x4b0]
push eax
call fcn.00402760
mov edi, dword [ebp - 0x4b4]
cmp word [edi], 0x5a4d
jne 0x4028b3
add edi, dword [edi + 0x3c]
cmp dword [edi], 0x4550
jne 0x4028b3
or word [edi + 0x16], 0x2000
mov edi, dword [ebp - 0x4b4]
mov esi, edi
add esi, dword [esi + 0x3c]
mov ebx, dword [esi + 0x34]
lea esi, [esi + 0x78]
mov eax, dword [esi]
push eax
push edi
call fcn.00402930
add eax, edi
mov eax, dword [eax + 0xc]
push eax
push edi
call fcn.00402930
add edi, eax
push edi
call fcn.00409586
push eax
push 0
push edi
call fcn.0040e930
push dword [ebp + 8]
push edi
call fcn.0040957a
push dword [ebp + 0xc]
call fcn.004029a0
push dword [ebp - 0x4b8]
push dword [ebp - 0x4b4]
push dword [ebp + 0xc]
call fcn.004026b0
push 0x8000
push 0
push dword [ebp - 0x4b4]
call fcn.00409550
pop ebx
pop esi
pop edi
leave
ret 8
Function at 0x408cd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [0x51c92e], edi
add ebp, 4
mov ebx, 0xffffffff
push 0x400
push edi
call fcn.004094de
or eax, eax
jne 0x408d19
cmp word [edi], 0x5a4d
jne 0x408d19
add edi, dword [edi + 0x3c]
cmp dword [edi], 0x4550
jne 0x408d19
movzx ecx, word [edi + 0x16]
test ecx, 0x2000
je 0x408d19
xor ebx, ebx
or ebx, ebx
jne 0x408d3a
call fcn.00402520
cmp esi, 1
jne 0x408d33
mov eax, 1
pop ebx
pop esi
pop edi
leave
ret 0xc
pop ebx
pop esi
pop edi
leave
ret 0xc
sub ebp, 4
pop ebx
pop esi
pop edi
leave
ret 0xc

Function at 0x40a2d4
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov dword [edx], 0x67452301
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xefcdab89
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0x98badcfe
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], 0x10325476
mov esp, ebp
pop ebp
ret

Function at 0x40cfec
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], ecx
mov byte [ebp - 0x20], 0xfe
mov byte [ebp - 0x1f], 0xdc
mov byte [ebp - 0x1e], 0xba
mov byte [ebp - 0x1d], 0x98
mov byte [ebp - 0x1c], 0x76
mov byte [ebp - 0x1b], 0x54
mov byte [ebp - 0x1a], 0x32
mov byte [ebp - 0x19], 0x10
mov byte [ebp - 0x18], 0xa3
mov byte [ebp - 0x17], 0x9d
mov byte [ebp - 0x16], 0x4a
mov byte [ebp - 0x15], 0x18
mov byte [ebp - 0x14], 0xf8
mov byte [ebp - 0x13], 0x5b
mov byte [ebp - 0x12], 0x4a
mov byte [ebp - 0x11], 0x52
mov byte [ebp - 0x10], 0xfe
mov byte [ebp - 0xf], 0xdc
mov byte [ebp - 0xe], 0xba
mov byte [ebp - 0xd], 0x98
mov byte [ebp - 0xc], 0x76
mov byte [ebp - 0xb], 0x54
mov byte [ebp - 0xa], 0x32
mov byte [ebp - 9], 0x10
mov byte [ebp - 8], 0xa3
mov byte [ebp - 7], 0x3d
mov byte [ebp - 6], 0x4a
mov byte [ebp - 5], 0x18
mov byte [ebp - 4], 0xf8
mov byte [ebp - 3], 0x5b
mov byte [ebp - 2], 0x4a
mov byte [ebp - 1], 0x52
push 0
mov dl, 2
lea ecx, [ebp - 0x48]
call fcn.0040d0bc
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x33], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x2f], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x2b], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x27], eax
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp + 0xc]
shl edx, 3
push edx
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x4c]
lea ecx, [ebp - 0x48]
call fcn.0040d13f
mov esp, ebp
pop ebp
ret 8
Function at 0x412528
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff38
mov eax, dword [ebp + 0x10]
shl eax, 3
mov dword [ebp - 4], eax
mov dword [0x51be68], 0x67452301
mov dword [0x51be6c], 0xefcdab89
mov dword [0x51be70], 0x98badcfe
mov dword [0x51be74], 0x10325476
cmp dword [ebp + 0x10], 0x40
jle 0x412595
push dword [ebp + 0xc]
lea edx, [ebp - 0xc8]
push edx
call fcn.00412735
add esp, 8
lea ecx, [ebp - 0xc8]
push ecx
call fcn.0041278e
pop ecx
add dword [ebp + 0xc], 0x40
sub dword [ebp + 0x10], 0x40
cmp dword [ebp + 0x10], 0x40
jg 0x412568
xor eax, eax
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov byte [edx + ebp - 0x88], 0
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x80
jl 0x41259a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
lea eax, [ebp - 0x88]
push eax
call fcn.0040e8ff
mov eax, dword [ebp + 0x10]
mov byte [eax + ebp - 0x88], 0x80
cmp dword [ebp + 0x10], 0x37
jg 0x412608
push dword [ebp - 4]
lea edx, [ebp - 0x50]
push edx
call fcn.004126fa
add esp, 8
lea ecx, [ebp - 0x88]
push ecx
lea eax, [ebp - 0xc8]
push eax
call fcn.00412735
add esp, 8
lea edx, [ebp - 0xc8]
push edx
call fcn.0041278e
pop ecx
jmp 0x41265a
push dword [ebp - 4]
lea ecx, [ebp - 0x10]
push ecx
call fcn.004126fa
add esp, 8
lea eax, [ebp - 0x88]
push eax
lea edx, [ebp - 0xc8]
push edx
call fcn.00412735
add esp, 8
lea ecx, [ebp - 0xc8]
push ecx
call fcn.0041278e
pop ecx
lea eax, [ebp - 0x48]
push eax
lea edx, [ebp - 0xc8]
push edx
call fcn.00412735
add esp, 8
lea ecx, [ebp - 0xc8]
push ecx
call fcn.0041278e
pop ecx
xor eax, eax
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov byte [edx + ebp - 0x88], 0
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x80
jl 0x41265f
lea ecx, [ebp - 0x88]
push ecx
lea eax, [ebp - 0xc8]
push eax
call fcn.00412735
add esp, 8
push dword [0x51be68]
push dword [ebp + 8]
call fcn.004126fa
add esp, 8
push dword [0x51be6c]
mov edx, dword [ebp + 8]
add edx, 4
push edx
call fcn.004126fa
add esp, 8
push dword [0x51be70]
mov ecx, dword [ebp + 8]
add ecx, 8
push ecx
call fcn.004126fa
add esp, 8
push dword [0x51be74]
mov eax, dword [ebp + 8]
add eax, 0xc
push eax
call fcn.004126fa
add esp, 8
xor edx, edx
mov dword [0x51be74], edx
mov dword [0x51be70], edx
mov dword [0x51be6c], edx
mov dword [0x51be68], edx
mov esp, ebp
pop ebp
ret
Function at 0x10001bd0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x10012271
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10022018]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
mov ecx, esi
call dword [sym.imp.mfc90.dll_Ordinal_316]
lea edi, [esi + 4]
mov ecx, edi
mov dword [esp + 0x1c], 0
call dword [sym.imp.mfc90.dll_Ordinal_316]
lea ebx, [esi + 8]
mov ecx, ebx
call dword [sym.imp.mfc90.dll_Ordinal_316]
lea ebp, [esi + 0xc]
mov ecx, ebp
call dword [sym.imp.mfc90.dll_Ordinal_316]
lea ecx, [esi + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_316]
lea ecx, [esi + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_316]
lea ecx, [esi + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_316]
lea ecx, [esi + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_316]
lea ecx, [esi + 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_316]
lea ecx, [esi + 0x30]
call dword [sym.imp.mfc90.dll_Ordinal_316]
lea ecx, [esi + 0x38]
call dword [sym.imp.mfc90.dll_Ordinal_316]
push 0x10014253
mov ecx, esi
mov byte [esp + 0x20], 0xa
call dword [sym.imp.mfc90.dll_Ordinal_820]
push 0x10014253
mov ecx, edi
call dword [sym.imp.mfc90.dll_Ordinal_820]
push 0x10014253
mov ecx, ebx
call dword [sym.imp.mfc90.dll_Ordinal_820]
push 0x10014253
mov ecx, ebp
call dword [sym.imp.mfc90.dll_Ordinal_820]
push 0x10014253
lea ecx, [esi + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_820]
push 0x10014253
lea ecx, [esi + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_820]
or eax, 0xffffffff
push 0x10014253
lea ecx, [esi + 0x30]
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
call dword [sym.imp.mfc90.dll_Ordinal_820]
push 0x10014253
lea ecx, [esi + 0x38]
mov dword [esi + 0x34], 0
call dword [sym.imp.mfc90.dll_Ordinal_820]
push 0x10014253
lea ecx, [esi + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_820]
push 0x10014253
lea ecx, [esi + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_820]
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x1000b330
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10011e09
mov eax, dword fs:[0]
push eax
mov eax, dword [0x10022018]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
mov ecx, dword [ecx + 8]
lea eax, [esp + 0x14]
push eax
add ecx, 0x30
call dword [sym.imp.mfc90.dll_Ordinal_817]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4
Function at 0x10011040
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10022018]
jne 0x1001104a
repz ret
jmp fcn.10011576
Function at 0x414dde
Capabilities:
Encode data using xor

Disassembly:
xor dword [edx], ebx
mov eax, 0xf58bb50a
add eax, esi
add edx, 4
and edi, edi
sub eax, 1
add esi, edi
cmp edx, ecx
jne fcn.00414dde
add eax, edi
ret
Function at 0x420b5b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x420b9a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x420b9a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420b9a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x420b9a
cmp dword [ecx + 0x74], 0xe
jbe 0x420b9a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x433310
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43333d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43333d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x431072
nop
nop
nop
nop
mov ebx, 0x40915c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x40280364
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x431060
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
je 0x4310d2
nop
nop
nop
nop
nop
mov ebx, 0x42f3f8
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x6ac066a5
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x4015a0
Capabilities:
Terminate process

Disassembly:
call fcn.00401940
jmp fcn.004012d0

Function at 0x4015b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403008]
jne 0x4015ba
repz ret
jmp fcn.004019f0
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..reloc
mov ebx, 0x40de38
nop
mov ecx, 0x64be0820
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
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
jne 0x433024
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x4304d8
nop
mov ecx, 0x41f87654
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

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 0x401720
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push 0
push eax
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Best_Application
push str.Clariot
push 0
mov dword [0x4050ff], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x401767
pop esi
pop ebp
ret
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
pop esi
pop ebp
ret

Function at 0x401fad
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x405364]
test eax, eax
je 0x401fc6
call eax
test eax, eax
jne 0x401fc6
push 0xfffffffffffffffe
jmp 0x401fe0
push 1
push 0x405010
push 0x405008
call fcn.00401b91
add esp, 0xc
test eax, eax
je 0x401fe6
push 0xfffffffffffffffd
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
push 0
push 0x405004
push section..data
call fcn.00401b91
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
test esi, esi
jne 0x40200c
mov esi, 0x4049c2
mov cl, 0x20
jmp 0x402015
cmp al, 0x20
ja 0x40201f
inc esi
mov al, byte [esi]
test al, al
jne 0x402010
cmp al, 0x20
jbe 0x402036
mov al, byte [esi]
cmp al, 0x22
jne 0x402028
xor cl, 0x20
inc esi
mov al, byte [esi]
cmp al, cl
ja 0x402021
jmp 0x402036
cmp al, cl
ja 0x40203c
inc esi
mov al, byte [esi]
test al, al
jne 0x402031
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test eax, 0xa0d0a0d
sub eax, 0x54524357
sub eax, 0xa0d0a0d
test byte [ebp - 0x18], 1
je 0x402065
movzx eax, word [ebp - 0x14]
jmp 0x402068
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.0040209d
pop ecx
pop esi
leave
ret

Function at 0x40209d
Capabilities:
Terminate process

Disassembly:
call fcn.004020e7
push 0
push 0x405018
push 0x405014
call fcn.00401b91
push 0
push 0x405020
push 0x40501c
call fcn.00401b91
add esp, 0x18
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ExitProcess]

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
mov ecx, 0x43366ce9
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0x587a4d9b
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219