joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b7af
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x402030
call fcn.0040b9e0
mov edi, 0x94
mov eax, edi
call fcn.0040c440
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x41973c], ecx
mov eax, dword [esi + 4]
mov dword [0x419748], eax
mov edx, dword [esi + 8]
mov dword [0x41974c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x419740], esi
cmp ecx, 2
je 0x40b80f
or esi, 0x8000
mov dword [0x419740], esi
shl eax, 8
add eax, edx
mov dword [0x419744], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40b84a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40b84a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40b862
cmp eax, 0x20b
je 0x40b84f
mov dword [ebp - 0x1c], esi
jmp 0x40b876
cmp dword [ecx + 0x84], 0xe
jbe 0x40b84a
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40b870
cmp dword [ecx + 0x74], 0xe
jbe 0x40b84a
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040e25f
pop ecx
test eax, eax
jne 0x40b88a
push 0x1c
call fcn.0040b78b
pop ecx
call fcn.0040e156
test eax, eax
jne 0x40b89b
push 0x10
call fcn.0040b78b
pop ecx
cmp dword [ebp - 0x1c], esi
je 0x40b8b7
mov eax, dword [0x41aff4]
cmp eax, esi
je 0x40b8b7
call eax
test eax, eax
jne 0x40b8b7
push 0x1d
call fcn.0040b766
pop ecx
call fcn.0040def0
mov dword [ebp - 4], esi
call fcn.0040dcf2
test eax, eax
jge 0x40b8d0
push 0x1b
call fcn.0040b766
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x41aff0], eax
call fcn.0040dbd0
mov dword [0x419720], eax
call fcn.0040db2e
test eax, eax
jge 0x40b8f6
push 8
call fcn.0040b766
pop ecx
call fcn.0040d8fb
test eax, eax
jge 0x40b907
push 9
call fcn.0040b766
pop ecx
push 1
call fcn.0040d41d
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40b91d
push eax
call fcn.0040b766
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040d89e
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40b93e
movzx eax, word [ebp - 0x40]
jmp 0x40b941
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004065b1
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40b95f
push edi
call fcn.0040d54a
call fcn.0040d56c
jmp 0x40b991
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040ba1b
ret
Function at 0x40cef3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040c440
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40cf8e
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x41973c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40cf8e
cmp eax, 1
je 0x40cfaf
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40cf8e
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40cf5b
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40cf8a
xor eax, eax
inc eax
jmp 0x40cfce
cmp edi, eax
jae 0x40cf92
xor eax, eax
jmp 0x40cfce
cmp eax, esi
jae 0x40cf99
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x41973c]
jmp 0x40cfb2
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40d487
Capabilities:
Terminate process

Disassembly:
push 8
push 0x402110
call fcn.0040b9e0
push 8
call fcn.0040e7da
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x41977c], esi
jne 0x40d4bb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x419778], esi
mov al, byte [ebp + 0x10]
mov byte [0x419774], al
cmp dword [ebp + 0xc], edi
jne 0x40d505
cmp dword [0x41afe8], edi
je 0x40d4f5
mov eax, dword [0x41afe4]
sub eax, 4
mov dword [0x41afe4], eax
cmp eax, dword [0x41afe8]
jb 0x40d4f5
mov eax, dword [eax]
cmp eax, edi
je 0x40d4d6
call eax
jmp 0x40d4d6
push 0x418044
mov eax, 0x41803c
call fcn.0040d405
pop ecx
push 0x418050
mov eax, 0x418048
call fcn.0040d405
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40d536
cmp dword [ebp + 0x10], edi
jne 0x40d544
mov dword [0x41977c], esi
push dword [ebp + 8]
call fcn.0040d3c3
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40d543
push 8
call fcn.0040e725
pop ecx
ret
call fcn.0040ba1b
ret
Function at 0x40d58a
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x418718]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x418768]
je 0x40d5bf
inc eax
cmp eax, 0x13
jb 0x40d5b0
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x418768]
jne 0x40d6e5
mov eax, dword [0x419728]
cmp eax, 1
je 0x40d6bd
cmp eax, edx
jne 0x40d5ef
cmp dword [0x418714], 1
je 0x40d6bd
cmp ecx, 0xfc
je 0x40d6e5
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40d625
lea eax, [ebp - 0x80]
push 0x40250c
push eax
call fcn.00412eb0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00411190
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40d659
mov eax, edi
push eax
call fcn.00411190
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x402508
push edi
call fcn.0040f3b0
add esp, 0x10
push edi
call fcn.00411190
push dword [esi + 0x41876c]
mov ebx, eax
call fcn.00411190
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040c440
mov ebx, esp
push 0x4024ec
push ebx
call fcn.00412eb0
push edi
push ebx
call fcn.00412ec0
push 0x4024e8
push ebx
call fcn.00412ec0
push dword [esi + 0x41876c]
push ebx
call fcn.00412ec0
push 0x12010
push 0x4024c0
push ebx
call fcn.00412db7
add esp, 0x2c
jmp 0x40d6e5
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x41876c]
push dword [esi]
call fcn.00411190
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040b9d1
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40e45e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40e48c
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40e493
cmp ebx, dword [eax + 4]
jae 0x40e493
xor eax, eax
jmp 0x40e683
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40e4a4
xor eax, eax
inc eax
jmp 0x40e682
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40e4ba
cmp ecx, edx
jae 0x40e5ff
cmp dword [eax + 4], 0
je 0x40e4c3
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40e4ab
cmp dword [ebp + 8], 0
je 0x40e4e5
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40e5ff
cmp eax, esi
jae 0x40e5ff
mov eax, dword [0x4198a8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40e50a
cmp dword [esi*4 + 0x4198b0], edi
je 0x40e603
inc esi
cmp esi, eax
jl 0x40e4f8
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40e67f
cmp dword [ebp - 8], 0x1000000
jne 0x40e67f
test byte [ebp - 0xc], 0xcc
je 0x40e588
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40e67f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40e67f
cmp word [eax + 0x18], 0x10b
jne 0x40e67f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40e67f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40e588
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40e588
test byte [ecx + 0x27], 0x80
jne 0x40e5ff
push 1
push 0x4198f0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40e49c
mov ecx, dword [0x4198a8]
test ecx, ecx
mov edx, ecx
jle 0x40e5bc
lea eax, [ecx*4 + 0x4198ac]
cmp dword [eax], edi
je 0x40e5bc
dec edx
sub eax, 4
test edx, edx
jg 0x40e5b0
test edx, edx
jne 0x40e5ed
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40e5c9
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40e5e1
lea eax, [edx*4 + 0x4198b0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40e5cf
cmp ecx, 0x10
jge 0x40e5ed
inc ecx
mov dword [0x4198a8], ecx
push 0
push 0x4198f0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40e49c
xor eax, eax
jmp 0x40e682
test esi, esi
jle 0x40e49c
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4198f0
call ebx
test eax, eax
jne 0x40e49c
cmp dword [esi*4 + 0x4198b0], edi
je 0x40e659
mov eax, dword [0x4198a8]
lea esi, [eax - 1]
test esi, esi
jl 0x40e647
cmp dword [esi*4 + 0x4198b0], edi
je 0x40e643
dec esi
jns 0x40e637
test esi, esi
jge 0x40e657
cmp eax, 0x10
jge 0x40e652
inc eax
mov dword [0x4198a8], eax
lea esi, [eax - 1]
jmp 0x40e659
je 0x40e671
xor ecx, ecx
test esi, esi
jl 0x40e671
lea eax, [ecx*4 + 0x4198b0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40e65f
push 0
push 0x4198f0
call ebx
jmp 0x40e49c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412db7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x419a6c], ebx
push esi
push edi
jne 0x412e37
push 0x403014
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x412e72
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403008
push edi
call esi
test eax, eax
mov dword [0x419a6c], eax
je 0x412e72
push 0x402ff8
push edi
call esi
push 0x402fe4
push edi
mov dword [0x419a70], eax
call esi
cmp dword [0x41973c], 2
mov dword [0x419a74], eax
jne 0x412e37
push 0x402fc8
push edi
call esi
test eax, eax
mov dword [0x419a7c], eax
je 0x412e37
push 0x402fb0
push edi
call esi
mov dword [0x419a78], eax
mov eax, dword [0x419a78]
test eax, eax
je 0x412e7c
call eax
test eax, eax
je 0x412e63
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x419a7c]
test eax, eax
je 0x412e63
test byte [ebp - 8], 1
jne 0x412e7c
cmp dword [0x419748], 4
jb 0x412e76
or byte [ebp + 0x12], 0x20
jmp 0x412e9b
xor eax, eax
jmp 0x412eab
or byte [ebp + 0x12], 4
jmp 0x412e9b
mov eax, dword [0x419a70]
test eax, eax
je 0x412e9b
call eax
mov ebx, eax
test ebx, ebx
je 0x412e9b
mov eax, dword [0x419a74]
test eax, eax
je 0x412e9b
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x419a6c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41341b
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x418718]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x41344c
xor eax, eax
jmp 0x4135d5
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x41aee0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x413488
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00414cff
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x413563
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x4135a1
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x4134ec
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4134dd
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x4134bd
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41352c
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x413535
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x4134ae
jmp 0x413537
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x4135d0
cmp dword [ebp - 0x6c], edi
je 0x4135a1
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x413596
call fcn.004121e9
mov dword [eax], 9
call fcn.004121f2
mov dword [eax], esi
jmp 0x4135cb
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41358b
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x413537
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x413537
push dword [ebp - 0x6c]
call fcn.004121fb
pop ecx
jmp 0x4135cb
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4135b9
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x4135b9
xor eax, eax
jmp 0x4135d3
call fcn.004121e9
mov dword [eax], 0x1c
call fcn.004121f2
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x4135d3
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0040b9d1
add ebp, 0x3a0
leave
ret
Function at 0x414f86
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x41515a
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x41aee0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x41515a
test cl, 0x48
je 0x414ff1
cmp byte [eax + 5], 0xa
je 0x414ff1
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x415043
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x41502b
call fcn.004121e9
mov dword [eax], 9
call fcn.004121f2
mov dword [eax], esi
jmp 0x41503b
cmp eax, 0x6d
je 0x41515a
push eax
call fcn.004121fb
pop ecx
or eax, 0xffffffff
jmp 0x41515c
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x415155
test eax, eax
je 0x41506a
cmp byte [ebx], 0xa
jne 0x41506a
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x415073
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x41514f
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x41513f
cmp al, 0xd
je 0x4150a5
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x415131
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4150bf
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4150ba
add dword [ebp + 0x10], 2
jmp 0x415113
mov dword [ebp + 0x10], eax
jmp 0x41512d
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4150e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41512d
cmp dword [ebp - 0xc], 0
je 0x41512d
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x415108
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x415113
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x415130
cmp ebx, dword [ebp + 0xc]
jne 0x415118
cmp byte [ebp - 1], 0xa
jne 0x415118
mov byte [ebx], 0xa
jmp 0x415130
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004132fc
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x415131
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x415089
jmp 0x41514f
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x41514f
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x41515c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x17a336d3
nop
nop
nop
nop
nop
test eax, eax
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
mov ecx, 0x5fdb0e38
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
popal
nop
nop
nop
nop
jmp 0x401219

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..00cfg
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
mov esi, 0x69721209
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x30ac6ff4
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x402488
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.00401545
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004014fa
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.00401535
push ebp
mov cl, 0xd2

Function at 0x403464
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x7d1], 0x82
mov byte [ebp - 0x7d0], 0x81
mov byte [ebp - 0x7cf], 0x89
mov byte [ebp - 0x7ce], 0xee
push 0xb
lea eax, [ebp - 0x7dc]
push eax
call fcn.00401545
pop ecx
push eax
mov eax, dword [ebp - 0x338]
lea eax, [ebp + eax - 0x230]
push eax
call fcn.004014a6
invalid

Function at 0x403cb4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x403d1a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004031f4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040269c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x403d04
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403d21
lea eax, [ebp - 0x10]
call fcn.00403094
ret
Function at 0x405080
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
mov eax, dword [ebp - 8]
call fcn.004033fc
xor eax, eax
push ebp
push 0x4051db
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00403094
cmp dword [ebp - 4], 0
je 0x4050ee
mov eax, dword [ebp - 4]
call fcn.0040320c
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
je 0x4050ee
lea eax, [ebp - 4]
mov edx, 0x4051f0
call fcn.00403214
cmp dword [ebp - 8], 0
je 0x40511d
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x40511d
lea ecx, [ebp - 0x150]
mov edx, 2
mov eax, dword [ebp - 8]
call fcn.00404728
mov edx, dword [ebp - 0x150]
lea eax, [ebp - 8]
call fcn.0040312c
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00403258
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040340c
push eax
call sub.kernel32.dll_FindFirstFileA
mov esi, eax
test esi, esi
setne al
jmp 0x4051a6
test dword [ebp - 0x14c], 0x10
ja 0x405193
cmp dword [ebx], 0
je 0x405166
mov eax, ebx
mov edx, 0x4051fc
call fcn.00403214
push dword [ebx]
push dword [ebp - 4]
lea eax, [ebp - 0x154]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.004031f4
push dword [ebp - 0x154]
mov eax, ebx
mov edx, 3
call fcn.004032cc
lea eax, [ebp - 0x14c]
push eax
push esi
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x405149
push esi
call sub.kernel32.dll_FindClose
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4051e2
lea eax, [ebp - 0x154]
mov edx, 2
call fcn.004030b8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004030b8
ret

Function at 0x406d40
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff64
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x9c], edx
mov edi, eax
xor eax, eax
push ebp
push 0x406dfc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x97]
push eax
push 0x97
call sub.kernel32.dll_GetLogicalDriveStringsA
xor ebx, ebx
jmp 0x406dd5
mov esi, ebx
and esi, 0xff
lea eax, [ebp + esi - 0x97]
push eax
call sub.kernel32.dll_GetDriveTypeA
sub eax, 5
je 0x406dd2
mov al, byte [ebp + esi - 0x97]
call fcn.0040258c
cmp al, 0x41
je 0x406dd2
mov al, byte [ebp + esi - 0x97]
call fcn.0040258c
cmp al, 0x42
je 0x406dd2
lea eax, [ebp - 0x9c]
mov dl, byte [ebp + esi - 0x97]
call fcn.004031b4
mov edx, dword [ebp - 0x9c]
mov eax, edi
call fcn.00403214
add bl, 4
xor eax, eax
mov al, bl
cmp byte [ebp + eax - 0x97], 0
jne 0x406d79
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406e03
lea eax, [ebp - 0x9c]
call fcn.00403094
ret

Function at 0x407080
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x4070a1
mov eax, 0xff
call fcn.00402680
xor byte [esi], al
inc esi
dec ebx
jne 0x407091
pop esi
pop ebx
ret