joyce8/EMBER2024-capa huggingface dataset:
Function at 0x300bff44
Capabilities:
Read clipboard data

Disassembly:
mov eax, dword [esp + 4]
push dword [eax*4 + 0x301ddc3c]
call dword [fcn.3000159c]
ret 4

Function at 0x300c0df1
Capabilities:
Read clipboard data

Disassembly:
cmp dword [0x301df2c8], 0
push edi
mov edi, dword [esp + 8]
je 0x300c0e0d
push edi
call fcn.300c0101
test eax, eax
je 0x300c0eb0
cmp edi, 2
jne 0x300c0e19
call fcn.300c0128
mov edi, eax
cmp edi, 9
push esi
mov esi, dword [edi*4 + 0x301ddc3c]
jne 0x300c0e35
push 8
call dword [0x300015ac]
test eax, eax
je 0x300c0e35
push 8
pop esi
push ebx
mov ebx, dword [fcn.3000159c]
push ebp
push esi
call ebx
mov ebp, eax
test ebp, ebp
je 0x300c0ead
cmp esi, 8
jne 0x300c0e58
cmp edi, 0x2d
je 0x300c0e95
push ebp
call fcn.300c0d36
jmp 0x300c0ead
cmp esi, 2
jne 0x300c0e95
cmp dword [0x301e4448], 0
je 0x300c0e95
push 9
call dword [0x300015ac]
test eax, eax
je 0x300c0e95
push 9
call ebx
test eax, eax
je 0x300c0e95
cmp edi, 0x2d
jne 0x300c0e8a
push 0
push eax
push ebp
call fcn.300c0bc3
jmp 0x300c0ead
push eax
push ebp
call fcn.300c0dc3
test eax, eax
jne 0x300c0ead
push edi
push ebp
call fcn.300c0ab9
cmp edi, 0x24
jne 0x300c0ead
test eax, eax
je 0x300c0ead
push 1
push eax
call fcn.300a9de1
pop ebp
pop ebx
pop esi
pop edi
ret 4
Function at 0x300c995f
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
mov esi, dword [fcn.300014f8]
push 0x11
call esi
test ax, ax
jge 0x300c997d
mov dword [esp + 0xc], 8
jmp 0x300c9982
and dword [esp + 0xc], 0
push 4
call esi
test ax, ax
push 0x10
pop ebx
jge 0x300c9994
mov dword [esp + 0x10], ebx
jmp 0x300c9999
and dword [esp + 0x10], 0
push 2
pop ebp
push ebp
call esi
test ax, ax
jl 0x300c99a6
xor ebp, ebp
push ebx
call esi
test ax, ax
jge 0x300c99b3
push 4
pop ebx
jmp 0x300c99b5
xor ebx, ebx
push 1
call esi
xor ecx, ecx
test ax, ax
setl cl
pop esi
movzx eax, cx
movzx ecx, word [edi]
shl ecx, 0x10
or eax, ecx
movzx ecx, word [esp + 8]
or eax, ecx
movzx ecx, word [esp + 0xc]
or eax, ecx
movzx ecx, bp
or eax, ecx
movzx ecx, bx
or eax, ecx
pop ebp
mov dword [edi], eax
pop ebx
pop ecx
pop ecx
ret

Function at 0x300ca5d6
Capabilities:
Hide graphical window

Disassembly:
push esi
push 1
call fcn.300ae0c1
mov eax, dword [0x301e46e4]
mov esi, dword [eax + 0x10c]
push 0
push dword [esi + 8]
call fcn.30019de4
push 2
push dword [esi + 8]
call fcn.30052d01
push dword [esi + 8]
call fcn.300210b7
test eax, eax
jne 0x300ca65a
mov eax, dword [0x301e46e4]
cmp esi, dword [eax + 0x10c]
jne 0x300ca620
push 1
push dword [esi + 8]
call fcn.300ea31c
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x28]
and ecx, 0x700
cmp ecx, 0x500
jne 0x300ca64d
push 2
push 0
push dword [eax]
call dword [fcn.300014a8]
push eax
call dword [fcn.3000155c]
push eax
call fcn.30052d01
mov eax, dword [0x301e4524]
cmp esi, dword [eax + 0x10c]
je 0x300ca661
mov eax, dword [0x301e4524]
jmp 0x300ca5e3
cmp dword [esp + 8], 0
je 0x300ca6b9
mov eax, dword [0x301e46e4]
push edi
mov edi, dword [fcn.30001678]
mov esi, dword [eax + 0x10c]
push dword [esi + 8]
call fcn.300210b7
test eax, eax
jne 0x300ca6b1
push dword [esi + 8]
call fcn.30055c06
test eax, eax
je 0x300ca6a4
mov eax, dword [esi + 8]
push 0
push dword [eax]
call edi
mov eax, dword [esi + 8]
push 8
push dword [eax]
call edi
mov eax, dword [0x301e4524]
cmp esi, dword [eax + 0x10c]
je 0x300ca6b8
mov eax, dword [0x301e4524]
jmp 0x300ca674
pop edi
push 1
push dword [0x301dec14]
call fcn.30052d01
mov esi, 0x301de6d8
push 2
push dword [esi]
call fcn.30052d01
add esi, 4
cmp esi, 0x301de6e8
jl 0x300ca6cb
pop esi
ret 4

Function at 0x300cabbe
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x300cac36
mov eax, dword [esp + 0x10]
test eax, eax
je 0x300cabe9
test byte [0x301e4955], 4
je 0x300cabe9
mov eax, dword [esp + 8]
push 1
push edi
push eax
call fcn.300ca9df
pop edi
ret 0xc
test eax, eax
mov ecx, dword [0x301e88c4]
je 0x300cac02
mov ecx, dword [0x301e3f8c]
sub ecx, dword [0x301e7660]
and ecx, 0xf
push esi
mov esi, dword [esp + 0xc]
lea esp, [esp]
mov al, byte [ecx + 0x301e7610]
xor al, byte [esi]
add ecx, 1
mov dl, al
add al, al
add al, al
shr dl, 5
add al, al
or dl, al
mov byte [esi], dl
add esi, 1
and ecx, 0xf
sub edi, 1
jne 0x300cac0a
mov dword [0x301e88c4], ecx
pop esi
pop edi
ret 0xc
Function at 0x30126ca7
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, 0x100
cmp dword [ebp + 8], esi
push edi
jle 0x30126cba
mov dword [ebp + 8], esi
mov ebx, dword [ecx + 0x40]
xor edi, edi
cmp dword [ebp + 0x10], edi
jne 0x30126ccc
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
jmp 0x30126d01
cmp ebx, esi
jle 0x30126d01
mov edi, dword [ebp + 0xc]
mov eax, esi
sub eax, dword [ebp + 8]
cdq
sub eax, edx
mov edx, dword [ebp + 8]
sar eax, 1
sub edi, eax
add eax, edx
add eax, dword [ebp + 0xc]
test edi, edi
jge 0x30126cf1
sub eax, edi
xor edi, edi
jmp 0x30126cfd
cmp eax, ebx
jle 0x30126cfd
mov edx, ebx
sub edx, eax
add edi, edx
mov eax, ebx
sub eax, edi
mov ebx, eax
mov eax, dword [ecx + 0x48]
push esi
mov esi, 0x301e613c
push esi
push ebx
lea eax, [eax + edi*2]
push eax
call fcn.30007ae4
sub dword [ebp + 0xc], edi
xor edi, edi
cmp dword [ebp + 0x14], edi
jne 0x30126d78
push edi
call dword [fcn.300015cc]
push eax
call dword [sym.imp.MSO.DLL_Ordinal_307]
mov ecx, dword [ebp + 0xc]
push edi
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.MSO.DLL_Ordinal_835]
lea ecx, [ecx + 0x301e613c]
push ecx
push eax
mov dword [ebp + 0x10], eax
call edi
push 0
push 0
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
push esi
push dword [ebp + 0x10]
call edi
push 0x200
push esi
push ebx
push esi
push dword [ebp + 0x10]
mov dword [0x301e6138], eax
mov dword [0x301e6130], eax
call edi
mov ebx, eax
lea eax, [ebx + 0x20]
xor edi, edi
jmp 0x30126d8b
mov eax, dword [ebp + 0xc]
add eax, eax
mov dword [0x301e6138], eax
mov dword [0x301e6130], eax
lea eax, [ebx + ebx + 0x20]
mov dword [0x301e6120], edi
pop edi
mov dword [0x301e611c], eax
mov eax, dword [ebp + 8]
pop esi
mov dword [0x301e6124], ebx
mov dword [0x301e6128], 0x20
mov dword [0x301e612c], eax
mov dword [0x301e6134], eax
pop ebx
pop ebp
ret 0x10

Function at 0x30132a3c
Capabilities:
Log keystrokes via application hook

Disassembly:
push esi
push edi
xor edi, edi
cmp dword [esp + 0xc], edi
je 0x30132a94
cmp dword [0x301e4790], edi
je 0x30132aba
cmp dword [0x301e35f4], edi
jne 0x30132aba
mov esi, dword [0x30001204]
call esi
mov edi, dword [0x30001428]
push eax
push dword [0x301dec00]
push dword [0x301ddb4c]
push 2
call edi
mov dword [0x301e35f4], eax
call esi
push eax
push dword [0x301dec00]
push dword [0x301ddb50]
push 0xffffffffffffffff
call edi
mov dword [0x301e35c8], eax
jmp 0x30132aba
mov eax, dword [0x301e35f4]
cmp eax, edi
je 0x30132aba
mov esi, dword [0x30001424]
push eax
call esi
push dword [0x301e35c8]
call esi
mov dword [0x301e35f4], edi
mov dword [0x301e35c8], edi
pop edi
pop esi
ret 4

Function at 0x301469b8
Capabilities:
Log keystrokes via polling

Disassembly:
push dword [esp + 4]
call fcn.30146894
push 0x11
call dword [fcn.300014f8]
xor ecx, ecx
test ax, ax
setl cl
push ecx
push 0
push dword [esp + 0xc]
call fcn.30145661
ret 4
Function at 0x301d8254
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [section..cdata]
push ebx
push esi
mov dword [ebp + 0x194], eax
lea eax, [ebp - 0x7c]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x301d8310
push 0x80000002
mov dword [ebp - 0x7c], ebx
xor esi, esi
mov dword [ebp - 0x80], 0x208
mov word [ebp - 0x78], bx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push 0x301d8374
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x7c], ebx
je 0x301d82c1
push dword [ebp - 0x7c]
call dword [entry0]
mov eax, dword [ebp - 0x80]
cmp eax, ebx
je 0x301d82e6
cmp eax, 0x208
ja 0x301d82e6
shr eax, 1
mov esi, eax
je 0x301d82e6
lea eax, [ebp + esi*2 - 0x7a]
cmp word [eax], 0x5c
je 0x301d82e6
dec esi
dec eax
dec eax
cmp esi, ebx
jne 0x301d82d9
mov edx, dword [ebp + 0x1a0]
lea ecx, [ebp - 0x78]
mov word [ebp + esi*2 - 0x78], bx
call fcn.301d81d0
mov ecx, dword [ebp + 0x194]
pop esi
pop ebx
call fcn.30056b36
add ebp, 0x198
leave
ret 4

Function at 0x301d8628
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 8]
push eax
mov edi, 0x20019
push edi
xor ebx, ebx
push ebx
push 0x300a8048
push 0x80000000
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x301d86c7
lea eax, [ebp - 4]
push eax
push edi
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call esi
test eax, eax
jne 0x301d86b9
push 4
pop esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x301d86e0
push dword [ebp - 4]
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x301d86b9
cmp dword [ebp + 8], esi
jne 0x301d86b9
mov edi, dword [ebp - 0xc]
cmp edi, 3
ja 0x301d86b9
cmp dword [ebp - 4], ebx
mov esi, dword [entry0]
je 0x301d86ab
push dword [ebp - 4]
call esi
cmp dword [ebp - 8], ebx
je 0x301d86b5
push dword [ebp - 8]
call esi
mov eax, edi
jmp 0x301d86d7
cmp dword [ebp - 4], ebx
je 0x301d86c7
push dword [ebp - 4]
call dword [entry0]
cmp dword [ebp - 8], ebx
je 0x301d86d5
push dword [ebp - 8]
call dword [entry0]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x301d86f6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x301e6384], 0
je 0x301d870b
mov eax, dword [0x301e6380]
leave
ret
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
mov ebx, 0x20019
push ebx
push 0
push 0x301d8808
mov edi, 0x80000001
push edi
call esi
test eax, eax
jne 0x301d8762
lea eax, [ebp - 8]
push eax
push 0x301e6380
push 0
push 0
push dword [0x301e5ec8]
mov dword [ebp - 8], 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x301d8762
cmp dword [ebp - 8], 4
je 0x301d87a7
lea eax, [ebp - 4]
push eax
push ebx
xor ebx, ebx
push ebx
push 0x301d87cc
push edi
call esi
test eax, eax
jne 0x301d879f
push 4
pop esi
lea eax, [ebp - 8]
push eax
push 0x301e6380
push ebx
push ebx
push dword [0x301e5ec8]
mov dword [ebp - 8], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x301d879f
cmp dword [ebp - 8], esi
je 0x301d87a9
mov dword [0x301e6380], ebx
jmp 0x301d87a9
xor ebx, ebx
cmp dword [ebp - 4], ebx
mov esi, dword [0x301e6380]
mov byte [0x301e6384], 1
je 0x301d87c4
push dword [ebp - 4]
call dword [entry0]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x409ed0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov dword [ebp - 4], esi
lea esi, [ebp + 0xc]
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
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x409f20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x409f46
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x409feb
mov eax, dword [ebp - 0x24]
cmp eax, 4
jne 0x409fc0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x409f39
cmp eax, 0x40
je 0x409f39
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
sub esp, 0x10
mov esp, ebp
pop ebp
ret
cmp eax, 0x40
je 0x409f70
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x409f70
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00409ed0
lea esi, [esi]
lea edi, [edi]
Function at 0x40a260
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.0040a240
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x40a296
jmp 0x40a2e6
add ebx, 1
movzx edx, byte [ebx]
cmp dl, 9
je 0x40a293
cmp dl, 0x20
je 0x40a293
cmp dl, 0x22
je 0x40a330
cmp dl, 9
mov eax, edx
je 0x40a2d4
cmp dl, 0x20
je 0x40a2d8
test dl, dl
jne 0x40a2ca
lea esi, [esi]
jmp 0x40a2e6
cmp al, 0x20
je 0x40a2d8
test al, al
je 0x40a2e6
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
jne 0x40a2c2
cmp al, 0x20
jne 0x40a34a
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x40a2d8
cmp al, 0x20
je 0x40a2d8
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x40a2f5
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00401340
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
add ebx, 1
movzx eax, byte [ebx]
test al, al
je 0x40a33e
cmp al, 0x22
jne 0x40a330
cmp al, 0x22
jne 0x40a2d4
add ebx, 1
movzx eax, byte [ebx]
jmp 0x40a2d4
cmp al, 9
je 0x40a2d8
nop
jmp 0x40a2e6

Function at 0x40a6a0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40a6d4
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [0x426060], eax
call fcn.0040b470
test eax, eax
sete al
movzx eax, al
mov dword [0x41f84c], eax
leave
ret
call sub.KERNEL32.dll_GetLastError
test eax, eax
sete al
movzx eax, al
mov dword [0x41f84c], eax
leave
ret
Function at 0x40a7f0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x4c
mov eax, dword [eax + 0xc]
mov edx, dword [ebx + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
mov dword [ebp - 0x1c], edx
jmp 0x40a81c
mov dword [0x42605c], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
test eax, eax
je 0x40a8e1
mov eax, dword [eax + 0x18]
xor edi, edi
mov dword [ebp - 0x2c], eax
mov eax, 0xa
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebx]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx + 4]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], 1
mov dword [esp + 0xc], ecx
call dword [ebp - 0x20]
test eax, eax
jne 0x40a900
cmp edi, 5
je 0x40a905
mov edi, dword [ebp - 0x2c]
test edi, edi
je 0x40a8a6
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0xa
mov dword [esp], 1
call dword [ebp - 0x2c]
cmp eax, 7
mov edi, eax
je 0x40a905
cmp eax, 8
jne 0x40a900
mov eax, dword [esi]
mov edi, dword [eax]
mov eax, dword [0x41f84c]
test eax, eax
js 0x40a8f4
test eax, eax
je 0x40a810
mov eax, dword [0x426060]
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
jne 0x40a816
call sub.KERNEL32.dll_GetLastError
jmp 0x40a816
mov dword [ebp - 0x2c], 0
mov edi, 5
mov al, 0x1a
jmp 0x40a831
call fcn.0040a6f0
mov eax, dword [0x41f84c]
jmp 0x40a8b3
mov edi, 2
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40ab10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [0x41f84c]
mov ebx, dword [ebp + 8]
test eax, eax
js 0x40abfd
test eax, eax
jne 0x40ab91
mov eax, dword [0x42605c]
test eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
je 0x40ab84
lea esi, [ebp - 0x20]
jmp 0x40ab44
mov dword [ebp - 0x20], eax
mov eax, dword [eax + 0x18]
test eax, eax
je 0x40ab7b
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov edx, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esp + 4], 1
mov dword [esp], 1
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
call eax
cmp eax, 6
je 0x40abc0
cmp eax, 8
jne 0x40abf0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
test eax, eax
jne 0x40ab41
mov eax, 5
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [0x426060]
call sub.KERNEL32.dll_GetLastError
mov dword [esp], edi
mov esi, eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov edi, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
mov eax, edi
sub esp, 4
jmp 0x40ab32
mov eax, dword [ebp - 0x20]
mov edx, esi
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, ebx
call fcn.0040a760
cmp eax, 7
jne 0x40ab89
lea eax, [ebp - 0x1c]
mov edx, esi
call fcn.0040a910
nop
lea esi, [esi]
lea esp, [ebp - 0xc]
mov eax, 3
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0040a6f0
mov eax, dword [0x41f84c]
jmp 0x40ab29

Function at 0x40ac10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x40ac40
mov dword [esp], ebx
call fcn.0040ab10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [0x41f84c]
test eax, eax
js 0x40aca0
test eax, eax
jne 0x40ac70
mov eax, dword [0x42605c]
lea esi, [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov edx, esi
mov dword [ebp - 0x20], eax
mov eax, ebx
call fcn.0040a7f0
cmp eax, 7
je 0x40acb0
call sub.msvcrt.dll_abort
nop
mov edi, dword [0x426060]
call sub.KERNEL32.dll_GetLastError
mov dword [esp], edi
mov esi, eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov edi, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
mov eax, edi
sub esp, 4
jmp 0x40ac52
call fcn.0040a6f0
mov eax, dword [0x41f84c]
jmp 0x40ac49
lea eax, [ebp - 0x1c]
mov edx, esi
call fcn.0040a910
lea esi, [esi]
Function at 0x40acc0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x41f84c]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
test eax, eax
js 0x40ad50
test eax, eax
jne 0x40ad22
mov eax, dword [0x42605c]
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
test edx, edx
jne 0x40ad07
lea esi, [ebp - 0x20]
mov eax, ebx
mov edx, esi
call fcn.0040a760
cmp eax, 7
je 0x40ad18
call sub.msvcrt.dll_abort
lea esi, [ebp - 0x20]
mov eax, ebx
mov edx, esi
call fcn.0040a7f0
cmp eax, 7
jne 0x40ad02
lea eax, [ebp - 0x1c]
mov edx, esi
call fcn.0040a910
mov edi, dword [0x426060]
call sub.KERNEL32.dll_GetLastError
mov dword [esp], edi
mov esi, eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov edi, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
mov eax, edi
sub esp, 4
jmp 0x40ace4
call fcn.0040a6f0
mov eax, dword [0x41f84c]
jmp 0x40acdb

Function at 0x40b190
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [esp], ebx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 4], esi
mov esi, dword [ebp + 8]
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40b1c4
mov dword [esi], eax
mov esi, dword [esp + 4]
mov dword [ebp + 0xc], ebx
mov ebx, dword [esp]
mov dword [ebp + 8], eax
mov esp, ebp
pop ebp
jmp fcn.0040b470
mov ebx, dword [esp]
mov esi, dword [esp + 4]
mov esp, ebp
pop ebp
jmp sub.KERNEL32.dll_GetLastError
Function at 0x402e7c
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402eb8
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryA
push esp
call sub.KERNEL32.DLL_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test bl, bl
je 0x402ed8
lea eax, [esp + 0x109]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404bc0
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x403110
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404950
test esi, esi
jne 0x403146
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404a40
jmp 0x403164
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403014
mov edi, eax
test esi, esi
je 0x403164
cmp dword [ebx], 0
je 0x403164
dec esi
jmp 0x40314d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4038e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4a7020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40397c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40395c
xor eax, eax
push ebp
push 0x403955
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 0x403998
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40395c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4a7020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4a7020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4047d0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4aa048], 0
je 0x404831
cmp word [0x4aa21c], 0xd7b2
jne 0x4047f9
cmp dword [0x4aa224], 0
jbe 0x4047f9
mov eax, 0x4aa218
call dword [0x4aa234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x404858
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x4a702c], 0
jne 0x40484d
push 0
push 0x4a7750
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret