joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403c90
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x403cae
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403cc0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
jmp 0x403cde
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40422f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40433a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push esi
push edi
mov dword [ebp - 0x11c], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x114], 0xff
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
lea ecx, [ebp + 0x10]
call fcn.004260a5
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [0x4405dc]
test eax, eax
jne 0x4042ea
sub esp, 0xc
mov dword [ebp - 0x118], esp
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x118]
call fcn.00404900
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
push eax
mov byte [ebp - 4], 1
call fcn.00409e54
add esp, 0x10
or dword [ebp - 0x11c], 1
mov byte [ebp - 4], 0
call fcn.00404331
mov eax, dword [ebp + 8]
jmp 0x404344
push 0x43c10c
mov ecx, dword [ebp + 8]
call fcn.00425d8c
or dword [ebp - 0x11c], 1
mov byte [ebp - 4], 0
call fcn.00404331
mov eax, dword [ebp + 8]
jmp 0x404344
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404353
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40445d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x114], 0xff
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
lea ecx, [ebp + 0xc]
call fcn.004260a5
push eax
mov eax, dword [ebp + 8]
push eax
call dword [0x4405dc]
test eax, eax
jne 0x404433
cmp dword [ebp - 0x10], 4
je 0x4043d1
cmp dword [ebp - 0x10], 3
jne 0x404433
cmp dword [ebp - 0x114], 4
jne 0x404433
xor eax, eax
mov al, byte [ebp - 0x10d]
shl eax, 0x18
xor ecx, ecx
mov cl, byte [ebp - 0x10e]
shl ecx, 0x10
add eax, ecx
xor ecx, ecx
mov cl, byte [ebp - 0x10f]
shl ecx, 8
add eax, ecx
xor ecx, ecx
mov cl, byte [ebp - 0x110]
add eax, ecx
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov dword [ebp - 0x118], 1
mov dword [ebp - 4], 0xffffffff
call fcn.00404454
mov eax, dword [ebp - 0x118]
jmp 0x404467
mov dword [ebp - 0x11c], 0
mov dword [ebp - 4], 0xffffffff
call fcn.00404454
mov eax, dword [ebp - 0x11c]
jmp 0x404467
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40463b
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404789
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
push 0
sub esp, 0xc
mov dword [ebp - 0x18], esp
lea eax, [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.00425cdf
mov byte [ebp - 4], 1
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 0
call fcn.00408bc5
add esp, 0x10
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.004260a5
push eax
mov eax, dword [ebp + 8]
push eax
call dword [0x4405d4]
mov byte [ebp - 4], 0
call fcn.0040476e
push 0
sub esp, 0xc
mov dword [ebp - 0x28], esp
lea eax, [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x28]
call fcn.00425cdf
mov byte [ebp - 4], 3
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 0
call fcn.00408cd4
add esp, 0x10
mov byte [ebp - 4], 4
mov ecx, eax
call fcn.004260a5
push eax
mov eax, dword [ebp - 0x10]
push eax
call dword [0x4405e0]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0
call fcn.0040475c
mov eax, dword [ebp - 0x10]
push eax
call dword [0x4405e4]
cmp dword [ebp - 0x14], 0
jne 0x404730
mov dword [ebp - 0x38], 1
mov dword [ebp - 4], 0xffffffff
call fcn.00404780
mov eax, dword [ebp - 0x38]
jmp 0x404793
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
call fcn.00404780
mov eax, dword [ebp - 0x3c]
jmp 0x404793
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4047a2
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4048d9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x128], 0xff
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push 0
push 0
lea ecx, [ebp + 0xc]
call fcn.004260a5
push eax
mov eax, dword [ebp + 8]
push eax
call dword [0x4405d4]
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x14]
push eax
call dword [0x4405d0]
cmp dword [ebp - 0x20], 0
jne 0x404892
sub esp, 0xc
mov dword [ebp - 0x140], esp
lea eax, [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x140]
call fcn.00425cdf
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push eax
mov byte [ebp - 4], 0
call fcn.0040463b
add esp, 0x10
mov dword [ebp - 0x13c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.004048d0
mov eax, dword [ebp - 0x13c]
jmp 0x4048e3
mov dword [ebp - 0x144], 0
mov dword [ebp - 4], 0xffffffff
call fcn.004048d0
mov eax, dword [ebp - 0x144]
jmp 0x4048e3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404d97
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x24], ecx
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx eax, ax
test eax, eax
jge 0x404dbd
xor eax, eax
jmp 0x404ef9
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx eax, ax
test eax, eax
jge 0x404ddc
mov dword [ebp - 4], 1
jmp 0x404de3
mov dword [ebp - 4], 0
push 0
push 0
push 0x87
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test al, 6
jne 0x404ef2
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x404ef2
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 0x20], eax
push 0xa
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetClassNameA]
cmp dword [ebp - 4], 0
je 0x404e5c
mov dword [ebp - 0x10], 3
jmp 0x404e63
mov dword [ebp - 0x10], 2
push 0x436958
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x404e90
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 8], eax
jmp 0x404ea1
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x404ed6
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x1c]
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetNextDlgTabItem]
push eax
call fcn.00404990
mov eax, 1
jmp 0x404ef9
push 0xfffffffffffffff0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 0x18010000
cmp eax, 0x10010000
jne 0x404e29
xor eax, eax
jmp 0x404ef9
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40511e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
call fcn.00403110
mov dword [ebp - 8], eax
push 5
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.00428e41
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add eax, 0x12
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0xffff
jne 0x40518e
mov dword [ebp - 0x18], 2
jmp 0x40519e
mov eax, dword [ebp - 4]
push eax
call fcn.00416cb2
add esp, 4
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
add eax, eax
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0xffff
jne 0x4051c6
mov dword [ebp - 0x1c], 2
jmp 0x4051d6
mov eax, dword [ebp - 4]
push eax
call fcn.00416cb2
add esp, 4
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
add eax, eax
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 0x44
call fcn.00425e71
jmp 0x4051f2
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405ed9
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x18]
call fcn.00407e00
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x405f01
xor eax, eax
jmp 0x406054
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
jne 0x405f23
xor eax, eax
jmp 0x406054
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x40602e
cmp dword [sym.imp.USER32.dll_GetFocus], 0
jne 0x405f55
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
movsx eax, ax
test eax, eax
jl 0x405f55
xor eax, eax
jmp 0x406054
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
cmp dword [eax + 0x1c], ecx
je 0x405f73
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
cmp dword [eax + 0x1c], ecx
jne 0x405f7a
xor eax, eax
jmp 0x406054
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
push 0x87
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov word [ebp - 0x10], ax
test byte [ebp - 0x10], 4
je 0x405fa9
xor eax, eax
jmp 0x406054
cmp dword [ebp - 4], 0x102
jne 0x405fc7
test byte [ebp - 0x10], 0x80
je 0x405fc7
xor eax, eax
jmp 0x406054
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.00405e2d
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x405fee
xor eax, eax
jmp 0x406054
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_CallMsgFilterA]
test eax, eax
je 0x40600c
mov eax, 1
jmp 0x406054
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.0040605b
mov eax, 1
jmp 0x406054
cmp dword [ebp - 0x1c], 0x102
je 0x405f55
cmp dword [ebp - 0x1c], 0x106
je 0x405f2e
jmp 0x40604d
xor eax, eax
jmp 0x406054
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x406eb6
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
jmp 0x406ed1
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jae 0x406f20
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x50]
mov edx, 1
mov cl, byte [ebp - 4]
shl edx, cl
and eax, edx
cmp eax, 1
mov eax, 0
adc eax, 0xffffffff
and eax, 5
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax*4 + 0x43c110]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x406ece
jmp 0x406f25
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4090d7
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4091a9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 4], 0
sub esp, 0xc
mov dword [ebp - 0x10], esp
lea eax, [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.00425cdf
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
call fcn.00408f1b
add esp, 0xc
cmp eax, 2
jl 0x409163
sub esp, 0xc
mov dword [ebp - 0x14], esp
sub esp, 0xc
mov dword [ebp - 0x18], esp
lea eax, [ebp + 8]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.00425cdf
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
push eax
mov byte [ebp - 4], 0
call fcn.00408bc5
add esp, 0x10
mov byte [ebp - 4], 3
mov byte [ebp - 4], 0
call fcn.004090d7
add esp, 0xc
push 0
lea ecx, [ebp + 8]
call fcn.00403130
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 4], 0xffffffff
call fcn.004091a0
jmp 0x4091b3
mov eax, dword [ebp - 0xc]
mov dword fs:[0], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40f802
Capabilities:
Access peb ldr_data
Get number of processors
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f927
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 4
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00425cd3
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00425cd3
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.00425cd3
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.00425cd3
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00425cd3
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x3c
call fcn.00421fe3
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call fcn.00421fe3
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0x64
call fcn.00421fe3
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x10]
add ecx, 0x78
call fcn.00421fe3
mov byte [ebp - 4], 8
jmp 0x40f8af
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x40f931
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412b80
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412c95
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 4
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
cmp dword [ebp + 0x14], 0
je 0x412bf6
push 0x409900
lea ecx, [ebp + 8]
call fcn.00403130
push eax
push 0x43c440
lea ecx, [ebp + 0x24]
call fcn.00417095
mov ecx, eax
call fcn.00417095
mov ecx, eax
call fcn.004098d0
mov byte [ebp - 4], 0
call fcn.00412c83
mov dword [ebp - 4], 0xffffffff
call fcn.00412c8c
jmp 0x412c9f
lea ecx, [ebp + 8]
call fcn.00403130
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x412c40
push 0x409900
lea ecx, [ebp + 8]
call fcn.00403130
push eax
push 0x43c450
lea ecx, [ebp + 0x24]
call fcn.00417095
mov ecx, eax
call fcn.00417095
mov ecx, eax
call fcn.004098d0
jmp 0x412c69
push 0x409900
lea ecx, [ebp + 8]
call fcn.00403130
push eax
push 0x43c460
lea ecx, [ebp + 0x24]
call fcn.00417095
mov ecx, eax
call fcn.00417095
mov ecx, eax
call fcn.004098d0
mov byte [ebp - 4], 0
call fcn.00412c83
mov dword [ebp - 4], 0xffffffff
call fcn.00412c8c
jmp 0x412c9f
mov eax, dword [ebp - 0xc]
mov dword fs:[0], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418c8f
Capabilities:
Accept command line arguments
Query environment variable
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ba90
push 0x41caa0
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x43e404], eax
mov al, ah
and eax, 0xff
mov dword [0x43e410], eax
mov eax, dword [0x43e404]
shr dword [0x43e404], 0x10
and eax, 0xff
mov dword [0x43e40c], eax
shl eax, 8
add eax, dword [0x43e410]
mov dword [0x43e408], eax
call fcn.0041c9f3
call fcn.0041aa0a
test eax, eax
jne 0x418d08
push 0x10
call fcn.00418e08
add esp, 4
mov dword [ebp - 4], 0
call fcn.0041b590
call fcn.00419e16
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4356d8], eax
call fcn.0041c793
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [0x43d338], eax
call fcn.0041c6c8
call fcn.0041bac1
mov esi, dword [0x4356d8]
mov al, byte [esi]
cmp al, 0x22
je 0x418d56
cmp al, 0x20
jbe 0x418d82
inc esi
cmp byte [esi], 0x20
ja 0x418d4e
jmp 0x418d82
inc esi
cmp byte [esi], 0x22
je 0x418d81
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x418d7c
movzx eax, bl
push eax
call fcn.0041c685
add esp, 4
test eax, eax
je 0x418d76
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x418d5f
cmp byte [esi], 0x22
jne 0x418d82
inc esi
cmp byte [esi], 0
je 0x418d92
cmp byte [esi], 0x20
ja 0x418d92
inc esi
cmp byte [esi], 0
jne 0x418d87
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x418db2
movzx eax, word [ebp - 0x40]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.0041baf1
jmp 0x418dee
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x419413
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0x70
xor edi, edi
push 1
call fcn.0041a032
add esp, 8
mov esi, eax
cmp esi, edi
je 0x419471
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
push 0x41948d
mov dword [esi + 0x48], eax
push dword [ebp + 0xc]
push dword [ebp + 8]
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x14], 1
mov dword [esi + 0x50], 0x43ebe8
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x419489
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call fcn.004197e1
add esp, 4
test edi, edi
je 0x419487
push edi
call fcn.00419fa2
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x41aa0a
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.0041b682
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x43d8ec], eax
cmp eax, 0xffffffff
je 0x41aa67
push 0x70
push 1
call fcn.0041a032
add esp, 8
mov esi, eax
test esi, esi
je 0x41aa67
push esi
mov eax, dword [0x43d8ec]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41aa67
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov eax, 1
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], 0x43ebe8
mov dword [esi + 0x14], 1
jmp 0x41aa69
xor eax, eax
pop esi
ret

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

Disassembly:
push esi
mov eax, dword [0x43d8ec]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x41aaca
push 0x70
push 1
call fcn.0041a032
add esp, 8
mov esi, eax
test esi, esi
je 0x41aac0
push esi
mov eax, dword [0x43d8ec]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41aac0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x14], 1
mov dword [esi + 0x50], 0x43ebe8
jmp 0x41aaca
push 0x10
call fcn.00418e08
add esp, 4
mov eax, esi
pop esi
ret

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

Disassembly:
cmp dword [0x43d8ec], 0xffffffff
push esi
je 0x41ab6d
mov esi, dword [esp + 8]
test esi, esi
jne 0x41aaf6
mov eax, dword [0x43d8ec]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x41ab5f
mov eax, dword [esi + 0x24]
test eax, eax
je 0x41ab06
push eax
call fcn.004197e1
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x41ab16
push eax
call fcn.004197e1
add esp, 4
mov eax, dword [esi + 0x30]
test eax, eax
je 0x41ab26
push eax
call fcn.004197e1
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x41ab36
push eax
call fcn.004197e1
add esp, 4
mov eax, dword [esi + 0x40]
test eax, eax
je 0x41ab46
push eax
call fcn.004197e1
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x41ab56
push eax
call fcn.004197e1
add esp, 4
push esi
call fcn.004197e1
add esp, 4
push 0
mov eax, dword [0x43d8ec]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret
Function at 0x41b13d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 8], esi
cmp dword [ebp + 0x10], esi
jne 0x41b15a
xor eax, eax
jmp 0x41b2aa
mov eax, dword [ebp + 8]
test byte [eax + 0x43d8f8], 0x20
je 0x41b173
push 2
push 0
push eax
call fcn.0041b53e
add esp, 0xc
mov eax, dword [ebp + 8]
test byte [eax + 0x43d8f8], 0x80
je 0x41b1fd
mov dword [ebp - 0xc], 0
mov edi, dword [ebp + 0xc]
mov eax, edi
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jae 0x41b235
lea ebx, [ebp - 0x410]
mov eax, edi
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jae 0x41b1c7
mov al, byte [edi]
inc edi
cmp al, 0xa
jne 0x41b1b3
inc esi
mov byte [ebx], 0xd
inc ebx
lea ecx, [ebp - 0x410]
mov byte [ebx], al
inc ebx
mov eax, ebx
sub eax, ecx
cmp eax, 0x400
jl 0x41b19d
lea eax, [ebp - 0x410]
push 0
sub ebx, eax
lea ecx, [ebp - 0x410]
lea eax, [ebp - 4]
push eax
push ebx
push ecx
mov eax, dword [ebp + 8]
push dword [eax*4 + 0x43d9f8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41b22c
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
cmp eax, ebx
jge 0x41b189
jmp 0x41b235
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax*4 + 0x43d9f8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41b22c
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
jmp 0x41b235
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], 0
jne 0x41b2a5
cmp dword [ebp - 0xc], 0
je 0x41b270
cmp dword [ebp - 0xc], 5
jne 0x41b25e
call fcn.0041a015
mov dword [eax], 9
call fcn.0041a01e
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
jmp 0x41b269
push dword [ebp - 0xc]
call fcn.00419fa2
add esp, 4
mov eax, 0xffffffff
jmp 0x41b2aa
mov eax, dword [ebp + 8]
test byte [eax + 0x43d8f8], 0x40
je 0x41b288
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x41b288
xor eax, eax
jmp 0x41b2aa
call fcn.0041a015
mov dword [eax], 0x1c
call fcn.0041a01e
mov dword [eax], 0
mov eax, 0xffffffff
jmp 0x41b2aa
mov eax, dword [ebp - 8]
sub eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret