joyce8/EMBER2024-capa huggingface dataset:
Function at 0x150b6
Capabilities:
Get file attributes
Read file on windows

Disassembly:
push 0x54
push 0x114f8
call fcn.000105f8
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov ebx, dword [ebp + 0x10]
mov dword [ebx], esi
push esi
push 0x73534649
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
call fcn.00015218
mov dword [ebp - 0x1c], eax
cmp eax, esi
jl 0x151dc
mov dword [ebp - 4], esi
push 0x18
pop edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x40], 0x240
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
push 0x100
push esi
push esi
push esi
push esi
push 0x60
push 1
push 1
push 0x80
push esi
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0x80100000
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ntoskrnl.exe_IoCreateFile]
mov dword [ebp - 0x1c], eax
cmp eax, esi
jl 0x151b4
push 5
push edi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov dword [ebp - 0x1c], eax
cmp eax, esi
jl 0x151b4
cmp dword [ebp - 0x5c], 0xa00000
jbe 0x1516b
mov dword [ebp - 0x1c], 0xc00000bb
jmp 0x151b4
push 0x64534649
push dword [ebp - 0x5c]
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, esi
jne 0x1518d
mov dword [ebp - 0x1c], 0xc000009a
jmp 0x151b4
push esi
push esi
push dword [ebp - 0x5c]
push edi
lea eax, [ebp - 0x34]
push eax
push esi
push esi
push esi
push dword [ebp - 0x20]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [ebp - 0x1c], eax
cmp eax, esi
jl 0x151b4
mov eax, dword [ebp - 0x5c]
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov dword [ebp - 4], 0xfffffffe
call fcn.000151e6
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 4]
je 0x151d9
push 0x73534649
lea eax, [ebp - 0x2c]
push eax
call fcn.00015682
mov eax, dword [ebp - 0x1c]
call fcn.0001063d
ret 0xc
Function at 0x15416
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x1542d
mov dword [eax], ebx
mov esi, dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, 0xc0000023
je 0x15477
cmp edi, 0xc0000034
je 0x154c4
cmp edi, ebx
jge 0x154c4
push edi
push 0x16e
push 0x1697c
push 0x16dca
push ebx
push 0x65
call dword [sym.imp.ntoskrnl.exe_DbgPrintEx]
add esp, 0x18
jmp 0x154c4
cmp dword [ebp + 0x10], ebx
je 0x154c4
push 0x73525349
push dword [ebp - 4]
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov ebx, eax
test ebx, ebx
jne 0x15499
mov edi, 0xc000009a
jmp 0x154c4
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov edi, eax
test edi, edi
jl 0x154b8
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
jmp 0x154c4
push 0x73525349
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x15558
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
xor esi, esi
push 0xf003f
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], 0x18
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], 0x240
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, esi
jl 0x155bd
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
pop esi
leave
ret 0x14

Function at 0x155c8
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
xor esi, esi
push 0xf003f
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], 0x18
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], 0x240
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, esi
jl 0x15623
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwDeleteValueKey]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
pop esi
leave
ret 8
Function at 0x10117abf
Capabilities:
Encode data using base64

Disassembly:
lea eax, [ebx + eax*4 + 0x94d8]
and dh, bh
dec dl
mov dword [esp + 4], ecx
adc dh, 0x48
xchg dword [esp], ebx
rol bx, 0xc
mov ebx, eax
pushal
cmc
mov edx, 1

Function at 0x1011e44d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
test cl, 0x99
stc
cmp eax, dword [ebp - 0x10]
pushfd
lea esp, [esp + 8]
jae fcn.1011e25b
push 0x44caeb32
mov di, 0xd177
mov ebx, eax
pushfd
pushfd
movzx di, al
mov edi, eax
pushal
push 0xd00c7c7e
mov word [esp], 0x759d
push 0xf96fc4c2
lea esp, [esp + 0x34]
jmp 0x1011d145
Function at 0x100084fc
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000853b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000853b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000853b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000853b
cmp dword [ecx + 0x74], 0xe
jbe 0x1000853b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000c2b7
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 0x1000c354
push ebx
push esi
call fcn.1000c280
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.1000c214
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000c301
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000c353
push edi
push eax
call fcn.1000920c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000c321
call fcn.100091d2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000c352
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000c214
add esp, 0x20
test eax, eax
jne 0x1000c340
push edi
call fcn.100091d2
jmp 0x1000c348
push ebx
call fcn.100091d2
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 0x1000c554
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10016c58
push 0x10016c50
push str.FlsAlloc
push 0x1f
call fcn.1000c470
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000c588
push dword [ebp + 8]
mov ecx, esi
call dword [0x10015144]
call esi
jmp 0x1000c58e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000c5d2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10016c68
push 0x10016c60
push str.FlsGetValue
push 0x21
call fcn.1000c470
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000c609
push dword [ebp + 8]
mov ecx, esi
call dword [0x10015144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000c611
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10016c70
push 0x10016c68
push str.FlsSetValue
push 0x22
call fcn.1000c470
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000c64b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10015144]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10013c20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10013c4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10013c4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x64c413e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x64c41438
cmp byte [esi + ebx - 1], 0xa
je 0x64c4140c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x64c46084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x64c41a90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xfc
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x64c41c68
mov edi, dword [0x64c46084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x64c41b77
test byte [0x64c42030], 8
jne 0x64c41c10
lea ebx, [ebp - 0xe0]
mov edi, ebx
test byte [0x64c42040], 8
jne 0x64c41bd0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x64c41b19
cmp esi, 3
jbe 0x64c41b88
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x64c41b2a
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xfc
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x64c44100]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x64c41b19
mov dword [esp], 0x64c42040
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x64c41af0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x64c41af0
mov dword [esp], 0x64c42030
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x64c41adb
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xe0]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x64c41ae3
mov eax, 0xffffffff
jmp 0x64c41b77
Function at 0x423416
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b93f1
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x4fc504]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov eax, dword [0x4fc504]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov ebx, ecx
cmp byte [ebx + 0xee0], 0
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x28], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x2c], edx
je 0x423481
push edx
push edi
push dword [ebp + 8]
call main
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
lea eax, [ecx - 0x7d1]
cmp eax, 0x3e9
ja 0x426187
jmp dword [eax*4 + 0x4261ba]
mov eax, dword [ebx]
push edx
push edi
push ecx
mov ecx, ebx
call dword [eax + 0xe8]
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.004906a0
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4285c2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x4285d1
pop dword [ebp - 0x18]
mov eax, 0x279e4931
sub eax, 0x275bc360
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xe5653f39
add dword [ebp - 0x28], 0x68ed0612
mov dword [ebp - 0x24], 0x591afab5
add dword [ebp - 0x24], 0xd9185190
mov dword [ebp - 0x20], 0x81a3b820
sub dword [ebp - 0x20], 0x355773f2
mov dword [ebp - 0x1c], 0x6f1de556
sub dword [ebp - 0x1c], 0x6f1de556
lea eax, [ebp - 0x28]
push eax
mov eax, 0xd938484f
sub eax, 0xd8ec45b7
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0xe7e7daf9
add dword [ebp - 0x28], 0x8c8a8e5d
mov dword [ebp - 0x24], 0xc7f75f1e
add dword [ebp - 0x24], 0x79750257
mov dword [ebp - 0x20], 0x5d9d2310
sub dword [ebp - 0x20], 0xfa2db6a4
mov dword [ebp - 0x1c], 0xbe47437
sub dword [ebp - 0x1c], 0xbe47437
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0xbef5a196
add eax, 0x4156612e
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x722cb
push 0
call eax
mov ecx, 0x2e7627fd
add ecx, 0xd18a204a
xor ebx, ebx
add ebx, eax
mov esi, 0x537400
add esi, dword [ebp - 0x18]
mov edx, 0x39f6bbd8
xor dword [ebp - 0xc], ecx
mov edi, dword [esi]
sub edi, edx
sub dword [ebp - 8], ecx
mov dword [ebx], edi
mov dword [ebp - 8], 0x4be62a6a
add ebx, 4
add esi, 0x24d45f90
sub esi, 0x24d45f8c
loop 0x4286e9
add eax, 0xdc72ce50
sub eax, 0xdc71ba61
xor ebx, ebx
add ebx, eax
add eax, 0x2c470a36
sub eax, 0x2c470a31
mov ecx, 0xe46c5183
sub ecx, 0xe42c5183
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x793dc5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x401000
call 0x793dc5
lcall 0x5de5, 0x8b10c483
jmp loc.00cb2fbc
Function at 0x10001fa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10001ff8
cmp byte [esi + ebx - 1], 0xa
je 0x10001fcc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10004158], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x1000ef13
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000ef52
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000ef52
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000ef52
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000ef52
cmp dword [ecx + 0x74], 0xe
jbe 0x1000ef52
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10011bcf
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 0x10011c6c
push ebx
push esi
call fcn.10011b98
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.10011b2c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10011c19
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10011c6b
push edi
push eax
call fcn.10012b8a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10011c39
call fcn.10010674
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10011c6a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10011b2c
add esp, 0x20
test eax, eax
jne 0x10011c58
push edi
call fcn.10010674
jmp 0x10011c60
push ebx
call fcn.10010674
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 0x10011ed9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10019888
push 0x10019880
push str.FlsAlloc
push 0x1f
call fcn.10011df5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10011f0d
push dword [ebp + 8]
mov ecx, esi
call dword [0x10018150]
call esi
jmp 0x10011f13
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10011f57
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10019898
push 0x10019890
push str.FlsGetValue
push 0x21
call fcn.10011df5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10011f8e
push dword [ebp + 8]
mov ecx, esi
call dword [0x10018150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10011f96
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100198a0
push 0x10019898
push str.FlsSetValue
push 0x22
call fcn.10011df5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10011fd0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10018150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10017650
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001767d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001767d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4033a8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.004056cc
test esi, esi
jne 0x4033e0
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405808
jmp 0x4033fe
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040328c
mov edi, eax
test esi, esi
je 0x4033fe
cmp dword [ebx], 0
je 0x4033fe
dec esi
jmp 0x4033e7
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x403a7c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x49d020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403b14
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403af4
xor eax, eax
push ebp
push 0x403aed
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403b4c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403af4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x49d020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x49d020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404c20
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a0054], 0
je 0x404c81
cmp word [0x4a0330], 0xd7b2
jne 0x404c49
cmp dword [0x4a0338], 0
jbe 0x404c49
mov eax, 0x4a032c
call dword [0x4a0348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push 0x49d784
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404cac
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x49d02c], 0
jne 0x404c9d
push 0
push 0x49d77c
push 0x49d784
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404e2c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x49d030], 0
je 0x404e52
mov edx, esi
mov eax, ebx
call dword [0x49d030]
jmp 0x404e61
mov eax, 8
call fcn.00402fd4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4a0055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404df4
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x407c50
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x409670
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4a2b60
push 0xa
push 0x409704
mov eax, dword [0x4a2b50]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x409694
call fcn.00412338
push ebx
mov eax, dword [0x4a2b50]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x4096ab
call fcn.00412338
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x4096bd
call fcn.00412338
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4a2b64], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4a2b68], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4a2b6c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4a2b70], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4a2b74], ecx
add edx, dword [eax + 0x14]
mov dword [0x4a2b78], edx
pop esi
pop ebx
ret

Function at 0x40ade0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40ae89
test eax, edx
je 0x40ae8c
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40ae09
push edx
mov edx, eax
mov eax, esp
call fcn.004058d0
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40ae1f
push eax
lea eax, [esp + 8]
call fcn.004058d0
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40ae2e
movzx eax, word [eax]
sub eax, ecx
jmp 0x40ae55
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40ae6f
add ecx, 4
js 0x40ae46
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40ae6c
push eax
mov eax, ecx
mov edx, 2
call fcn.00404ecc
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40ae53
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40ae55
xor eax, eax
ret
test eax, eax
je 0x40ae9c
test edx, edx
jne 0x40adf0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40bd08
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405758
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40bd26
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40bd47
cmp ebx, 3
je 0x40bd47
cmp ebx, 0x7b
je 0x40bd47
mov eax, esi
call fcn.0040bcc8
test al, al
jne 0x40bd4b
xor eax, eax
jmp 0x40bd4d
mov al, 1
pop esi
pop ebx
ret

Function at 0x40bd50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405758
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40bd69
test al, 0x10
jne 0x40bd6d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret