joyce8/EMBER2024-capa huggingface dataset:
Function at 0xc5e660
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x807000]
push edi
jmp 0xc5e67a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xc5e681
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xc5e670
mov eax, 1
add ebx, ebx
jne 0xc5e693
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xc5e6a4
jne 0xc5e6c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xc5e6c3
dec eax
add ebx, ebx
jne 0xc5e6b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xc5e688
add ebx, ebx
jne 0xc5e6bf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xc5e715
xor ecx, ecx
sub eax, 3
jb 0xc5e6db
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xc5e74a
sar eax, 1
mov ebp, eax
jmp 0xc5e6e6
add ebx, ebx
jne 0xc5e6e6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xc5e6b4
inc ecx
add ebx, ebx
jne 0xc5e6f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xc5e6b4
add ebx, ebx
jne 0xc5e701
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xc5e6f6
jne 0xc5e712
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xc5e6f6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xc5e734
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xc5e726
jmp 0xc5e676
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xc5e734
add edi, ecx
jmp 0xc5e676
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xc5e752
cmp byte [edi], 0x11
jne 0xc5e752
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 0xc5e757
lea edi, [esi + 0x857000]
mov eax, dword [edi]
or eax, eax
je 0xc5e7cf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xfe4420]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xfe459c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xc5e784
mov ecx, edi
jns 0xc5e7b3
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 + 0xfe45a0]
or eax, eax
je 0xc5e7c9
mov dword [ebx], eax
add ebx, 4
jmp 0xc5e7a1
call dword [esi + 0xfe45b0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xc5e800
cmp al, 0xef
ja 0xc5e7f3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xc5e7d5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xc5e7e2
mov ebp, dword [esi + 0xfe45a4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0xc5e834
sub esp, 0xffffff80
jmp 0x427f4a
Function at 0x431001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
mov ecx, 0x733e6a40
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x218519d7
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x406128
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40614d
mov dword [0x40a0f4], eax
add esp, 0xfffffff8
push 0x4060ec
push eax
call fcn.00407c20
jmp 0x406152
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x406168
mov dword [0x409054], 0x40624c
jmp 0x406172
mov dword [0x409054], 0x406200
leave
ret

Function at 0x401037
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path

Disassembly:
call 0x401037
push 0
call sub.kernel32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffbf4
push esi
push edi
push ebx
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x403030], eax
mov dword [ebp - 8], 0
push 0xa
push section..data
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
je 0x401089
mov dword [ebp - 4], eax
push dword [ebp - 4]
push 0
call sub.kernel32.dll_SizeofResource
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
je 0x401089
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4010c1
push 4
push 0x1000
push dword [ebp - 0xc]
push 0
call sub.kernel32.dll_VirtualAlloc
mov edi, eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push edi
call sub.kernel32.dll_RtlMoveMemory
mov dword [ebp - 8], edi
push 0xdeadbeef
push dword [ebp - 0xc]
push dword [ebp - 8]
call section..text
cmp dword [ebp - 8], 0
je 0x4010fb
lea eax, [ebp - 0x40c]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
push str.dup2patcher.dll
lea eax, [ebp - 0x40c]
push eax
call sub.kernel32.dll_lstrcatA
push dword [ebp - 0xc]
push dword [ebp - 8]
lea eax, [ebp - 0x40c]
push eax
call fcn.00401184
lea eax, [ebp - 0x40c]
push eax
call sub.kernel32.dll_LoadLibraryA
or eax, eax
je 0x401130
mov ebx, eax
push str.load_patcher
push ebx
call sub.kernel32.dll_GetProcAddress
or eax, eax
je 0x40111e
call eax
push ebx
call sub.kernel32.dll_FreeLibrary
lea eax, [ebp - 0x40c]
push eax
call sub.kernel32.dll_DeleteFileA
pop ebx
pop edi
pop esi
leave
ret

Function at 0x401184
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x4011af
xor eax, eax
leave
ret 0xc
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push dword [ebp - 4]
call sub.kernel32.dll_FlushFileBuffers
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
leave
ret 0xc
Function at 0x4f742d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f72a3

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x458267b
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x16574f87
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4051d0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x405231
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x405214
cmp edi, 2
jb 0x405214
cmp byte [esi], cl
jne 0x405214
cmp byte [esi + 1], cl
jne 0x405214
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x4428b0]
jmp 0x4051e5
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x4428b0]
test edi, edi
jne 0x4051e5
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x405260
cmp cl, 0x23
jne 0x405247
cmp byte [esi], cl
jne 0x405247
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x4428b0]
test cl, cl
jne 0x405238
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x405340
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x405354
mov dword [ebx], 0
mov edx, 0x446b28
call fcn.00405270
mov esi, eax
test esi, esi
je 0x405442
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call edi
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x405438
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x405438
push esi
call edi
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
je 0x405438
push 0
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x405438
mov eax, dword [0x44b4b8]
test eax, eax
je 0x4053cc
inc dword [eax + 0xb0]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x405438
push esi
push dword [ebp + 8]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp + 8]
je 0x40541d
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x44b4b8]
add esp, 4
test eax, eax
je 0x40540a
dec dword [eax + 0xb0]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
je 0x40542f
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4128b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x44b040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
lea edx, [ebp - 8]
push ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [0x44b4b8]
push esi
push edi
mov esi, 4
mov edi, dword [eax + 0x3f04]
mov eax, dword [edi + 0xfc]
mov ebx, dword [edi + 0x104]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x4428b0]
sub esi, 1
jne 0x4128f0
mov eax, dword [0x44b4b8]
not ebx
cmp dword [eax + 0x3f28], ebx
jne 0x41292a
push ecx
push dword [ebp - 0xc]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.004236a0
add esp, 8
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
lea ecx, [edi + 0xfc]
call fcn.004238a0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00440256
mov esp, ebp
pop ebp
ret
Function at 0x418460
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x53b8], 0
lea esi, [edi + 0x53bc]
je 0x4184e2
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x41849c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.00424310
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.00405780
mov edx, dword [esi]
mov ecx, 0x44b4b4
push dword [edi + 0x53b8]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x53c4]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.00405780
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4188c0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
mov dword [ebp - 4], ecx
push esi
lea esi, [ecx + 1]
push edi
test bl, bl
je 0x418908
or edi, 0xffffffff
nop dword [eax]
cmp bl, 0x23
jne 0x4188ef
cmp byte [esi], bl
jne 0x4188ef
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x4428b0]
test bl, bl
jne 0x4188e0
mov ebx, dword [0x44b4b8]
not eax
mov edi, dword [ebx + 0x5390]
mov esi, edi
neg esi
sbb esi, esi
lea ecx, [edi + 4]
and esi, ecx
je 0x418942
cmp dword [esi], eax
je 0x418951
mov edx, dword [esi - 4]
mov ecx, dword [ebx + 0x5388]
add edx, esi
add ecx, 4
xor esi, esi
add ecx, edi
cmp edx, ecx
cmovne esi, edx
test esi, esi
jne 0x418923
mov ecx, dword [ebp - 4]
call fcn.004187e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x418942
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x418960
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
push edi
mov edi, dword [0x44b4b8]
test bl, bl
je 0x4189a6
or edi, 0xffffffff
cmp bl, 0x23
jne 0x418987
cmp byte [esi], bl
jne 0x418987
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x4428b0]
test bl, bl
jne 0x418978
mov edi, dword [0x44b4b8]
mov esi, dword [edi + 0x537c]
xor ecx, ecx
not eax
test esi, esi
jle 0x4189cc
mov edi, dword [edi + 0x5384]
lea edx, [edi + 4]
nop dword [eax]
cmp dword [edx], eax
je 0x4189d2
inc ecx
add edx, 0x24
cmp ecx, esi
jl 0x4189c0
pop edi
pop esi
xor eax, eax
pop ebx
ret
lea eax, [ecx + ecx*8]
lea eax, [edi + eax*4]
pop edi
pop esi
pop ebx
ret
Function at 0x42c5c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x42c5fa
mov eax, dword [0x44b4b8]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x42c5ed
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x42c62b
mov eax, dword [0x44b4b8]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x42c61e
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x42c65c
mov eax, dword [0x44b4b8]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x42c64f
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x42c6a9
mov eax, dword [0x44b4b8]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x42c69c
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x42c6da
mov eax, dword [0x44b4b8]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x42c6cd
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x42c70b
mov eax, dword [0x44b4b8]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x42c6fe
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x5c], 0
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.0042eee0
Function at 0x441004
Capabilities:
Parse pe header

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

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov dword [0x42431c], ecx
call fcn.00401310
lea edx, [esp + 8]
push edx
lea eax, [esp + 8]
push eax
call fcn.00401110
add esp, 8
test eax, eax
je 0x40102e
push 1
call fcn.00404978
mov eax, dword [esp + 4]
push ebx
xor ebx, ebx
test eax, eax
jle 0x4010f5
push esi
push edi
nop
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
dec edi
mov dword [esp + 0x10], edi
mov edx, dword [ecx]
push edx
xor edi, edi
call fcn.00404940
mov esi, eax
push esi
call fcn.00404865
add esp, 8
test eax, eax
je 0x40108e
mov ecx, dword [0x4100b0]
test ecx, ecx
mov edi, 1
push eax
je 0x401086
push esi
push str.Error_code__3d:___s_n
call fcn.00404824
add esp, 0xc
jmp 0x40108e
call fcn.004047ac
add esp, 4
push esi
call fcn.004012e0
add esp, 4
test eax, eax
jne 0x4010b9
test edi, edi
jne 0x4010dc
push esi
push str.Illegal_error_code:__d_n
push 0x420e10
call fcn.00404610
add esp, 0xc
mov ebx, 1
jmp 0x4010dc
mov ecx, dword [0x4100b0]
test ecx, ecx
push eax
je 0x4010d4
push esi
push str._3d___s_n
call fcn.00404824
add esp, 0xc
jmp 0x4010dc
call fcn.004047ac
add esp, 4
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add ecx, 4
test eax, eax
mov dword [esp + 0x14], ecx
jg 0x401040
pop edi
pop esi
mov ecx, dword [esp + 8]
dec ecx
push ebx
mov dword [esp + 0xc], ecx
call fcn.00404978
pop ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x401110
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
mov edx, dword [esi]
push edi
mov edi, dword [esp + 0x10]
mov ecx, dword [edi]
lea eax, [esp + 0x10]
push eax
push 0x410040
push str.asvVI_
push ecx
push edx
call fcn.00401e10
add esp, 0x14
cmp eax, 0xffffffff
je 0x401193
lea esp, [esp]
add eax, 0xffffffc1
cmp eax, 0x37
ja case.0x401154.67
xor ecx, ecx
mov cl, byte [eax + 0x401224]
jmp dword [ecx*4 + 0x401210]
mov dword [0x4100b0], 1
jmp 0x401171
mov dword [0x4100b0], 0
mov eax, dword [edi]
mov ecx, dword [esi]
lea edx, [esp + 0x10]
push edx
push 0x410040
push str.asvVI_
push eax
push ecx
call fcn.00401e10
add esp, 0x14
cmp eax, 0xffffffff
jne 0x401140
mov ecx, dword [0x410c68]
sub dword [esi], ecx
mov edx, dword [0x410c68]
mov ecx, dword [edi]
lea eax, [edx*4]
add ecx, eax
mov dword [edi], ecx
cmp dword [esi], 0
jne 0x401208
mov eax, dword [0x424308]
test eax, eax
jne 0x401208
call fcn.00401290
pop edi
mov eax, 1
pop esi
ret
call fcn.00401260
push 0
call fcn.00404978
call fcn.00401290
push 0
call fcn.00404978
mov edx, dword [0x410c6c]
mov eax, dword [0x42431c]
push edx
push eax
push str._s:_Illegal_option_character__c_n
push 0x420e10
call fcn.00404610
add esp, 0x10
pop edi
mov eax, 1
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x401310
Capabilities:
Initialize winsock library

Disassembly:
mov al, byte [0x42430d]
test al, al
jne 0x4013ad
mov byte [0x42430d], 1
call fcn.00401eb0
mov eax, dword [0x424318]
test eax, eax
jne 0x4013a8
call fcn.00401440
push str.HOME
call fcn.00404ba4
add esp, 4
test eax, eax
mov dword [0x424318], eax
je 0x401360
push eax
push 0x424520
call fcn.00401e40
add esp, 8
mov dword [0x424318], eax
push str.UMASK
call fcn.00404ba4
add esp, 4
test eax, eax
je 0x401384
push eax
call fcn.004013b0
add esp, 4
or eax, 0x180
mov dword [0x410c24], eax
push str.UMASK_DIR
call fcn.00404ba4
add esp, 4
test eax, eax
je 0x4013a8
push eax
call fcn.004013b0
add esp, 4
or eax, 0x1c0
mov dword [0x410c28], eax
jmp 0x401550
ret
sub esp, 0x190
call fcn.004015b0
test al, al
je 0x40159f
lea eax, [esp]
push eax
push 2
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x40157b
call sub.WSOCK32.dll_WSACleanup
lea ecx, [esp]
push ecx
jmp 0x40158d
cmp word [esp], 2
je 0x401598
call sub.WSOCK32.dll_WSACleanup
lea edx, [esp]
push edx
push 2
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x40159f
mov byte [0x42430c], 1
xor al, al
add esp, 0x190
ret

Function at 0x401440
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xa04
push 0x424310
push 2
mov dword [esp + 0xc], 0x100
mov dword [esp + 0x10], 0x400
call fcn.00404cb7
add esp, 8
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SoftwareMySQL
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401541
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x118]
push edx
mov edx, dword [esp + 0x10]
push eax
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push edx
mov esi, 1
call edi
cmp eax, 0x103
je 0x401534
nop
lea eax, [esp + 0x114]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x51c]
push edx
call fcn.00401420
lea eax, [esp + 0x520]
push eax
call fcn.0040c797
lea ecx, [esp + 0x524]
push ecx
call fcn.0040cad2
add esp, 0x14
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x118]
push ecx
push 0
push 0
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
mov eax, esi
push ecx
push eax
push edx
mov dword [esp + 0x2c], 0x100
mov dword [esp + 0x30], 0x400
inc esi
call edi
cmp eax, 0x103
jne 0x4014c0
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0xa04
ret
Function at 0x401eb0
Capabilities:
Terminate process

Disassembly:
push 0
call fcn.00402100
add esp, 4
test eax, eax
je 0x401edf
call fcn.00405748
mov eax, dword [eax]
push eax
push str.Cant_initialize_threads:_error__d_n
push 0x420e10
call fcn.00404610
add esp, 0xc
push 1
call fcn.00404978
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x42cce0
call esi
push 0x42cc80
call esi
push 0x42cd00
call esi
push 0x42cca0
call esi
push 0x42cc40
call esi
push 0x42cc60
call esi
push 0x42cc20
call esi
push 0x42cc00
call esi
push 0x42ccc0
call esi
call fcn.004020f0
pop esi
jmp 0x401f30
push esi
push 0x42cca0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x42c8b0]
mov ecx, dword fs:[0x2c]
mov esi, dword [ecx + eax*4]
mov eax, dword [esi + 0x34]
test eax, eax
jne 0x401f84
mov eax, dword [0x42c7dc]
inc eax
lea edx, [esi + 0x10]
push edx
mov dword [0x42c7dc], eax
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 8]
push 0
push eax
call fcn.00402110
add esp, 8
push 0x42cca0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop esi
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219