joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1070ac3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1080bec]
jne 0x1070ad4
test ecx, 0xffff0000
jne 0x1070ad4
ret
jmp fcn.01070ade

Function at 0x1071c67
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x102ae48
call fcn.010722ac
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
cmp word [0x1000000], 0x5a4d
jne 0x1071cb0
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x1071cb0
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x1071cc9
cmp ecx, 0x20b
je 0x1071cb6
and dword [ebp - 0x1c], 0
jmp 0x1071ce0
cmp dword [eax + 0x1000084], 0xe
jbe 0x1071cb0
xor ecx, ecx
cmp dword [eax + 0x10000f8], ecx
jmp 0x1071cda
cmp dword [eax + 0x1000074], 0xe
jbe 0x1071cb0
xor ecx, ecx
cmp dword [eax + 0x10000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
and dword [ebp - 4], 0
push 2
pop esi
push esi
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or edi, 0xffffffff
mov dword [0x1088a3c], edi
mov dword [0x1088a40], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1088a28]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1088a24]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1088a38], eax
call fcn.01072338
cmp dword [0x1080bf0], 0
jne 0x1071d40
push fcn.01072338
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01072321
push 0x1001db0
push 0x1001dac
call sub.msvcrt.dll__initterm
mov eax, dword [0x1088a20]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1088a1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x1001da8
push 0x1001d80
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov eax, dword [eax]
test eax, eax
jne 0x1071da5
mov dword [ebp - 4], edi
mov eax, 0xff
jmp 0x1071e54
mov dword [ebp - 0x20], eax
cmp word [eax], 0x22
jne 0x1071de6
add eax, esi
mov dword [ebp - 0x20], eax
mov cx, word [eax]
test cx, cx
je 0x1071dc1
cmp cx, 0x22
jne 0x1071dae
cmp word [eax], 0x22
jne 0x1071dcc
add eax, esi
mov dword [ebp - 0x20], eax
mov cx, word [eax]
test cx, cx
je 0x1071dda
cmp cx, 0x20
jbe 0x1071dc7
test byte [ebp - 0x54], 1
je 0x1071df3
movzx ecx, word [ebp - 0x50]
jmp 0x1071df6
cmp word [eax], 0x20
jbe 0x1071dcc
add eax, esi
mov dword [ebp - 0x20], eax
jmp 0x1071de6
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x1000000
call fcn.01072d3b
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], 0
jne 0x1071e16
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x1071e52
mov eax, esi
call fcn.010722e7
ret
Function at 0x10726b3
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx edx, al
xor eax, eax
push 0x16
pop ecx
mov edi, esi
rep stosd dword es:[edi], eax
cmp edx, 5
sbb eax, eax
and eax, 0xfffffff4
add eax, 0x58
mov dword [esi], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x10726f6
mov ecx, dword [eax + 0x20]
push 0xfffffffffffffffa
mov dword [esi + 4], ecx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [esi + 8], eax
push 0
push 0x7c
push dword [ebp + 0x18]
mov ecx, esi
call fcn.0107266c
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x34], eax
lea eax, [esi + 0x5c]
mov dword [esi + 0x3c], ecx
mov ecx, dword [ebp + 8]
push 0x1002088
push eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 0x104
mov dword [esi + 0x58], ecx
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x401000
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [esp + 4], 2
jge 0x40100b
or eax, 0xffffffff
ret
push esi
mov esi, dword [esp + 0xc]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401046
xor eax, eax
push eax
push eax
push 3
push eax
push 7
push 0x40000000
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x40103f
xor eax, eax
inc eax
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4030e0]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x401066
call eax
test eax, eax
jne 0x401066
push 0xfffffffffffffffe
jmp 0x401080
push 1
push 0x403010
push 0x403008
call fcn.00401219
add esp, 0xc
test eax, eax
je 0x401086
push 0xfffffffffffffffd
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push edi
push 0x403004
push section..data
call fcn.00401219
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, eax
cmp ebx, edi
jne 0x4010aa
mov ebx, 0x402024
push edi
push edi
lea eax, [ebp - 4]
push eax
push ebx
call fcn.00401180
push eax
call fcn.0040116a
mov esi, eax
add esp, 0x14
cmp esi, edi
je 0x4010dd
mov eax, dword [ebp - 4]
lea eax, [esi + eax*4 + 4]
push eax
push esi
lea eax, [ebp - 4]
push eax
push ebx
call fcn.00401180
add esp, 0x10
jmp 0x4010e0
mov dword [ebp - 4], edi
test eax, 0xa0d0a0d
sub eax, 0x54524357
sub eax, 0xa0d0a0d
cmp esi, edi
push edi
je 0x40110a
push esi
push dword [ebp - 4]
call fcn.00401000
push esi
mov edi, eax
call fcn.00401157
add esp, 0x10
jmp 0x401116
push edi
push edi
call fcn.00401000
add esp, 0xc
mov edi, eax
push edi
call fcn.00401122
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401122
Capabilities:
Terminate process

Disassembly:
call fcn.00401240
push 0
push 0x403018
push 0x403014
call fcn.00401219
push 0
push 0x403020
push 0x40301c
call fcn.00401219
add esp, 0x18
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x152d303
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea esp, [esp + 4]
push eax
jmp 0x152d366
mov ecx, dword [ebp + 0x18]
rdtsc
jmp 0x152d338
mov eax, esi
call 0x1540cf8
rdtsc
bswap eax
mov ah, dl
jmp 0x152d34e

Function at 0x1535e31
Capabilities:
Execute anti-debugging instructions

Disassembly:
push 0xf1523294
jmp 0x1535d99
mov ebp, dword [esp + 0x2c]
xchg dh, ch
mov eax, dword [esp]
mov cx, word [esp]
bswap ecx
jmp 0x1535dac
lea ecx, [ebp*4]
mov bx, word [esp]
mov dx, 0xc840
cpuid
jmp 0x1535d83
lea esi, [esp]
pushfd
neg ebx
jmp 0x1535df9
mov edx, 0x2419998a
mov edx, edi
jmp 0x1535dd4
pushfd
jmp 0x1531f15
sub esp, 0xbc
mov edi, esp
sub esp, 0x1d
jne 0x1535e1a
dec ah
mov cl, bl
pop ax
lea esp, [esp + 3]
jmp fcn.01535efd
jne 0x1535db8
mov edx, 0x2419998a
mov edx, edi
jmp 0x1535dd4
dec ah
mov cl, bl
pop ax
jmp 0x1535ef9
jmp 0x1535e04
mov word [esp], cx
mov byte [esp], dl
mov dword [esp + 0x1c], edi
lea esp, [esp + 0x1c]
jmp 0x1535dce
lea esp, [esp + 3]

Function at 0x1540b36
Capabilities:
Encode data using xor

Disassembly:
pushfd
jmp 0x1540b2d
lea esp, [esp + 4]
call fcn.01540afa
jmp 0x15265ba

Function at 0x15736ce
Capabilities:
Encrypt data using rc4 prga

Disassembly:
shl edx, 8
sub esp, 9
lea esp, [esp + 1]
jmp 0x15736e6
jmp 0x15736b8
or edx, ebx
jmp 0x1573707
or edx, ebx
movzx ebx, byte [eax - 2]
shl edx, 8
jmp 0x15736d0
mov word [esp + 0x15], sp
lea esp, [esp + 1]
jmp 0x1573748
mov dword [ebp + ecx*4 + 0x34], edx
lea esp, [esp + 0x40]
inc ecx
sub esp, 0x19
jmp 0x15736f1
lea esp, [esp + 0x18]
add eax, 4
cmp ecx, 0xe
jmp 0x1573732
Function at 0x161534b
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov cx, si
jmp 0x1615392
rdtsc
lea ebp, reloc.WINMM.dll_midiStreamOut
mov word [esp + 2], sp
push word [esp + 1]
jmp 0x1615379
mov word [esp], ax
pop di
xchg word [esp + 4], di
xchg ecx, ebp
mov cx, word [esp + 2]
jmp 0x16153a6
xchg dl, cl
xchg dh, dl
mov dword [esp], edx
lea eax, [edx*4]
bswap eax
rdtsc
jmp 0x1615350
mov ebp, dword [esp + 3]
sub esp, 1
neg ax
stc
rdtsc
lea ebp, [ecx + edi]
jmp 0x16153bc
push dword [esp + 5]
cpuid
push dword [esp + 4]
xchg byte [esp + 4], al
jmp 0x1615533
push dword [esp + 3]
lea esp, [esp + 0xa]
mov bh, dl
call fcn.01615435
mov dl, 0x29
mov ecx, 0xd4ae2bd8
dec edx
fdivr dword [edi - 0x109432b6]
jg 0x1615420
jmp 0xd9ed62e
pop bx
pop eax
add ecx, 0xb73f44b1
push esi
btr dx, sp
mov dl, byte [esp + 4]
jmp 0x16153e7
invalid
add esp, 0x12
sub esp, 0xd
xchg byte [esp + 0xc], ah
bswap ecx
mov ax, word [esp + 0xa]
add esp, 6
jmp 0x161540b
pop dword [esp + 3]
neg dl
xchg si, dx
mov ecx, edx
sub esp, 0xa
rdtsc
jmp 0x1615454

Function at 0x16154cd
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop word [esp + 5]
mov ch, bl
mov eax, 0xc8c488b7
pop esi
sbb cl, cl
jmp 0x16154d6
mov cx, word [esp + 0xc]
mov ebp, ecx
jmp 0x16154b4
mov si, 0xb0bd
mov ecx, edi
lea esp, [esp + 3]
mov dx, word [esp]
cld
sub esp, 0x1d
jmp 0x1615514

Function at 0x1615689
Capabilities:
Execute anti-debugging instructions

Disassembly:
not esi
xchg word [esp + 8], ax
mov eax, dword [esp + 0x10]
xchg ah, cl
jmp 0x16156a5
std
jmp 0x1615673
lea ebp, [esi + ebp]
add esp, 3
mov byte [esp + 1], al
lea edi, [ebx + ebp]
pop word [esp + 1]
jmp 0x16156b6
mov ax, 0x18dc
bswap edi
push edx
lea esp, [esp + 0x13]
std
xchg dx, bp
jmp 0x161568c
xchg dword [esp], eax
pop bx
mov dh, 0x90
adc ebx, eax
dec ecx
pop cx
jmp 0x1615706
cpuid
not esi
bswap ebp
xchg ch, dl
btr dx, si
ror bl, 2
jmp 0x16156f0

Function at 0x1615f45
Capabilities:
Access peb ldr_data

Disassembly:
call fcn.01615018
mov word [esp + 2], dx
push dword [esp + 7]
mov dword [esp + 8], edx
pushfd
push ebx
jmp 0x161605c
push dword [esp + 2]
pop word [esp + 3]
push word [esp + 5]
jmp 0x1615f2f
mov eax, dword [eax]
mov eax, dword [eax + 8]
push eax
jmp 0x1615013
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x1615f8a
mov dword [esp], ebp
push esi
pop word [esp]
lea esp, [esp + 2]
push esi
push edi
jmp 0x1615fb1
push word [esp + 1]
pop word [esp + 4]
pop dword [esp]
mov byte [esp + 2], cl
mov dword [esp + 8], ebx
mov dword [esp + 4], esp
jmp 0x1616028
Function at 0x406037
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x40605b
xor eax, eax
test eax, eax
je 0x40606d
cmp byte [ebp + eax - 0x121], 0x5c
je 0x40606d
xor ecx, ecx
jmp 0x406070
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x40611a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a0ad4], 0
push esi
jne 0x406151
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40612b
mov dword [ecx*4 + 0x7a0ad0], eax
inc ecx
cmp ecx, 0x100
jl 0x406126
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406182
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a0ad0]
xor eax, esi
inc ecx
dec edx
jne 0x406164
pop edi
not eax
pop esi
ret 0xc

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

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 4], 0
jne 0x401173
xor eax, eax
pop esi
pop ebp
ret 8
push edi
push 0x410
call fcn.00404a0f
push 0x410
mov edi, eax
push 0
push edi
call fcn.00406450
add esp, 0x10
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.0040a34b
mov dword [eax], 0
push dword [esi]
push 0x208
push edi
push 0
push dword [ebp + 0xc]
push str.DllInjector
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4011f8
call fcn.0040a34b
cmp dword [eax], 0
jne 0x4011f8
test esi, esi
je 0x4011f8
nop dword [eax + eax]
cmp esi, 0x207
je 0x4011f8
cmp esi, 0x206
je 0x4011f8
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
push edi
call fcn.0040477b
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x401940
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x421040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 2
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x23c], ecx
mov dword [ebp - 0x240], edi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4019a1
nop dword [eax]
test edi, edi
je 0x401ac2
mov dword [edi], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040476d
mov esp, ebp
pop ebp
ret
xor al, al
xor esi, esi
push 0x228
mov byte [ebp - 0x231], al
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.00406450
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x401a09
nop dword [eax]
test edi, edi
je 0x4019ea
mov dword [edi], 2
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040476d
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x238]
nop
mov edx, dword ds:[ebp - 0x23c]
lea ecx, [ebp - 0x20c]
call fcn.00401220
cmp al, 1
jne 0x401a51
test esi, esi
mov byte [ebp - 0x231], al
cmove esi, dword [ebp - 0x228]
test edi, edi
je 0x401a51
nop dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x228], eax
je 0x401a51
mov byte [edi], 1
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
nop
cmp eax, 1
je 0x401a10
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x231], 0
mov edi, dword [ebp - 0x240]
jne 0x401a98
test edi, edi
je 0x401ac2
mov dword [edi], 3
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040476d
mov esp, ebp
pop ebp
ret
cmp byte ds:[ebp + 0xc], 1
push esi
push 0
jne 0x401aa9
push 0x1000
jmp 0x401aae
push 0x80
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
jne 0x401ac4
test edi, edi
je 0x401ac2
mov dword [edi], 4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040476d
mov esp, ebp
pop ebp
ret
Function at 0x4021c0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x421040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
mov esi, ecx
mov bl, dl
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x402216
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp bl, 1
jne 0x40225d
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040476d
mov esp, ebp
pop ebp
ret
cmp bl, 1
je 0x40225d
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40225d
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 1
push 0x41d1f8
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040476d
mov esp, ebp
pop ebp
ret
Function at 0x4053c3
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40eaeb
push ebx
push esi
call fcn.0040ea17
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040e9ab
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40ea98
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40eaea
push edi
push eax
call fcn.0040c0a4
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40eab8
call fcn.0040c06a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40eae9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040e9ab
add esp, 0x20
test eax, eax
jne 0x40ead7
push edi
call fcn.0040c06a
jmp 0x40eadf
push ebx
call fcn.0040c06a
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40eceb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x418f60
push 0x418f58
push str.FlsAlloc
push 0x1f
call fcn.0040ec07
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ed1f
push dword [ebp + 8]
mov ecx, esi
call dword [0x4171a8]
call esi
jmp 0x40ed25
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40ed69
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x418f70
push 0x418f68
push str.FlsGetValue
push 0x21
call fcn.0040ec07
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40eda0
push dword [ebp + 8]
mov ecx, esi
call dword [0x4171a8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40eda8
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x418f78
push 0x418f70
push str.FlsSetValue
push 0x22
call fcn.0040ec07
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ede2
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4171a8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41f0e0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a05fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004948f5
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x41f162
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00492540
mov eax, dword [eax]
push 0x5d2e78
push eax
call fcn.00483f04
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00494b80
test bl, bl
je 0x41f162
push 0x5d2e78
lea ecx, [esp + 0xc]
call fcn.00494f10
push 0x5d2e84
lea ecx, [esp + 0xc]
call fcn.00494f10
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41f19e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00494b80
jmp 0x41f269
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x41f222
lea edx, [esp + 0x7c]
push 0x5d2e80
push edx
call fcn.00483f04
add esp, 8
test eax, eax
je 0x41f222
lea eax, [esp + 0x7c]
push 0x5d2e7c
push eax
call fcn.00483f04
add esp, 8
test eax, eax
je 0x41f222
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41f1b2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00494b80
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x41fa80
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x41fae2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x41faf0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a067b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5de800]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x41fc28
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x41fb56
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00494b80
xor eax, eax
jmp 0x41fc9f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00494cbd
push esi
lea ecx, [esp + 0xc]
call fcn.00494f4c
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x5d2eb8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x41fc7d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0041fa80
test eax, eax
jne 0x41fc7d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.0041fa80
test eax, eax
jne 0x41fc7d
lea eax, [esp + 0x14]
push 0x5d2e94
push eax
call fcn.00485050
mov esi, eax
add esp, 8
test esi, esi
jne 0x41fc5c
lea ecx, [esp + 0x14]
push 0x5d2e90
push ecx
call fcn.00484fd0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41fc5c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41fc5f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00494c6d
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41fb6e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00494b80
xor eax, eax
jmp 0x41fc9f
mov byte [esi], 0
push 0x5d2e8c
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00494b80
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4