joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100019e1
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x1001d960
call fcn.10004980
mov ebx, dword [ebp + 8]
xor edi, edi
xor eax, eax
mov dword [ebp - 4], edi
mov esi, edi
mov dword [ebp - 0x14], esi
mov word [ebx], ax
call fcn.100018f8
test eax, eax
je 0x10001a12
call fcn.100018ea
mov esi, eax
mov dword [ebp - 0x14], eax
push 0x104
push ebx
push esi
push edi
push 0x10021c18
call dword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov esi, eax
test esi, esi
js 0x10001b28
jmp 0x10001a62
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10001a70
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
test esi, esi
jns 0x10001b20
push ebx
push edi
push edi
push 0x1a
push edi
mov dword [ebp - 4], 2
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
jns 0x10001ad1
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
jmp 0x10001b2e
or dword [ebp - 4], 0xffffffff
test esi, esi
jns 0x10001b20
push 1
push 0x1a
push ebx
push edi
mov dword [ebp - 4], 4
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, eax
test esi, esi
jns 0x10001b20
push esi
push str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
jmp 0x10001b2e
mov eax, esi
call fcn.10004937
ret
push esi
push str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__hToken__pPath__MAX_PATH_
call fcn.10003d44
pop ecx
pop ecx
push edi
push esi
call fcn.1000ef8d
int3

Function at 0x10002445
Capabilities:
Query environment variable

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
je 0x10002469
push dword [esp + 0xc]
push dword [esp + 0xc]
push str.USER_JPI_PROFILE
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
xor ecx, ecx
inc ecx
test eax, eax
cmovne esi, ecx
mov eax, esi
pop esi
ret
Function at 0x100030b4
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x1001d9bb
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x1002a034]
xor eax, ebp
mov dword [ebp + 0x104], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x1001ec0c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.1000ef8d
add esp, 0xc
test eax, eax
jne 0x100031a9
push dword [ebp - 0x18]
call fcn.1000ef8d
cmp dword [0x1002aa80], 0
pop ecx
je 0x10003122
xor eax, eax
inc eax
jmp 0x100031ab
lea eax, [ebp]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.kernel32.dll_GetTempPathA]
cmp eax, esi
ja 0x100031a9
test eax, eax
je 0x100031a9
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.1000330b
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push str.JavaDeployReg.log
call fcn.1000330b
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x10]
call fcn.100033d2
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x10003177
call fcn.100037d1
push 0x1001ec38
lea ecx, [ebp - 0x10]
call fcn.100033b4
push eax
push 0x1002aa80
call fcn.1000ef8d
mov ecx, dword [ebp - 0x10]
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
test ecx, ecx
je 0x100031a4
call fcn.100037d1
lea eax, [esi + 1]
jmp 0x100031ab
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.10004926
add ebp, 0x108
leave
ret

Function at 0x10003656
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x1002a034]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
mov ebx, dword [esp + 0x124]
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov eax, dword [edi + 4]
or eax, 0x2001f
push eax
push ebx
push dword [edi]
call fcn.1000ef8d
mov esi, eax
test esi, esi
jne 0x10003705
lea eax, [esp + 0x20]
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x100036e0
lea eax, [esp + 0x28]
push eax
call fcn.10003656
mov esi, eax
test esi, esi
jne 0x10003705
lea eax, [esp + 0x20]
xor ecx, ecx
push eax
push ecx
push ecx
push ecx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push ecx
push dword [esp + 0x30]
mov dword [esp + 0x30], pe_nt_image_headers32
call ebp
lea ecx, [esp + 0x14]
test eax, eax
je 0x100036bb
call fcn.1000342b
push ebx
mov ecx, edi
call fcn.10003445
mov esi, eax
lea ecx, [esp + 0x14]
call fcn.1000342b
mov ecx, dword [esp + 0x128]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10004926
add esp, 0x11c
ret 4
Function at 0x10003bc2
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x824
mov eax, dword [0x1002a034]
xor eax, esp
mov dword [esp + 0x820], eax
push ebx
push ebp
mov ebp, dword [esp + 0x830]
lea eax, [esp + 0x428]
push esi
mov esi, dword [esp + 0x838]
xor ebx, ebx
push edi
mov edi, 0x400
push edi
push ebx
push eax
call fcn.10005d80
push esi
push ebx
push ebp
push 0xffffffffffffffff
lea eax, [esp + 0x44c]
push edi
push eax
call fcn.1000ef8d
movzx ecx, byte [esp + 0x853]
lea edi, [esp + 0x34]
xor edx, edx
test eax, eax
push 8
cmovs ecx, edx
xor eax, eax
mov byte [esp + 0x857], cl
pop ecx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
push 0x20
push eax
call fcn.1000ef8d
push 0x10021be8
lea eax, [esp + 0x40]
push 0x20
push eax
call fcn.1000ef8d
push 0x400
lea eax, [esp + 0x6c]
push ebx
push eax
call fcn.10005d80
mov ecx, ebp
add esp, 0x44
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003c67
sub ecx, edx
cmp ecx, 6
jbe 0x10003c8e
lea eax, [ebp - 6]
add eax, ecx
push str.__08x_
push eax
call fcn.1000ef8d
pop ecx
pop ecx
test eax, eax
jne 0x10003c8e
xor ebx, ebx
inc ebx
lea esi, [esp + 0x10]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10003c95
sub esi, ecx
lea eax, [esp + 0x430]
push eax
mov ecx, 0x10020533
test ebx, ebx
mov eax, str.Error:
cmove eax, ecx
push eax
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push eax
push str.P:_04d_T:_04d__s_s
mov eax, 0x3ff
sub eax, esi
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x4c]
add eax, esi
push eax
call fcn.1000ef8d
mov ecx, dword [esp + 0x44b]
test eax, eax
push esi
lea eax, [esp + 0x34]
mov edx, 0x2e2e2e
push eax
lea eax, [esp + 0x58]
cmovs ecx, edx
push eax
mov dword [esp + 0x457], ecx
call fcn.10005800
lea edi, [esp + 0x5c]
add esp, 0x2c
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10003d0f
mov ax, word [0x10021c14]
mov word [edi], ax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x830]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10004926
add esp, 0x824
ret
Function at 0x1000ef8d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x1000ef9c
pop dword [ebp - 8]
mov eax, 0xa9470dec
add eax, 0x66b9e1b0
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x85e81301
add dword [ebp - 0x18], 0xc86a324a
mov dword [ebp - 0x14], 0xf10e70eb
sub dword [ebp - 0x14], 0xbedb24a6
mov dword [ebp - 0x10], 0xa0230969
sub dword [ebp - 0x10], 0x53d6c53b
mov dword [ebp - 0xc], 0x2b4dc035
sub dword [ebp - 0xc], 0x2b4dc035
lea eax, [ebp - 0x18]
push eax
mov eax, 0xcb47d11d
add eax, 0x44ba0f63
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x5c35ab11
sub dword [ebp - 0x18], 0xe7c341bb
mov dword [ebp - 0x14], 0x49d8131
sub dword [ebp - 0x14], 0xc3311fbc
mov dword [ebp - 0x10], 0x52dad8a4
sub dword [ebp - 0x10], 0xef6b6c38
mov dword [ebp - 0xc], 0xd56fa8cb
sub dword [ebp - 0xc], 0xd56fa8cb
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x3e651
push 0
call eax
mov ecx, 0x4c52
xor esi, esi
add esi, eax
mov edi, 0x4ca1d935
sub edi, 0x3c9e8135
add edi, dword [ebp - 8]
mov ebx, 0x1f4cefb3
sub ebx, 0xdb78a3dd
xor dword [ebp - 4], 0x48945e5
mov edx, dword [edi]
xor dword [ebp - 4], ebx
xor edx, ebx
xor dword [ebp - 4], 0xe4ea6a36
mov dword [esi], edx
add esi, 0x8d9e9104
sub esi, 0x8d9e9100
add edi, 4
loop 0x1000f0b5
add eax, 0x16f70e7e
add eax, 0xe90a159d
mov ebx, eax
add eax, 0x7bdd2100
add eax, 0x8422df05
mov ecx, 0x10000000
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x3002ef0d
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esi + 4]
cmp eax, dword [esi]
push ebp
mov ebp, dword [sym.imp.MSVCR80.dll_printf]
jl 0x3002ef4d
push 0
push 0x30022492
push 0x376a3276
push 0x30022492
call dword [sym.imp.MSO.dll_Ordinal_3295]
test eax, eax
jne 0x3002ef37
int3
push 0
call ebp
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [esp + 8], 0
je 0x3002ef8e
push ebx
mov ebx, dword [esi + 8]
push edi
mov edi, dword [esi + 4]
imul edi, ebx
add edi, dword [esi + 0xc]
test ebx, ebx
jns 0x3002ef7c
push 0
call ebp
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esp + 0x10]
push ebx
push ecx
push edi
call dword [sym.imp.MSVCR80.dll_memmove]
add esp, 0xc
pop edi
pop ebx
mov eax, dword [esp + 0xc]
test eax, eax
pop ebp
je 0x3002ef9c
mov edx, dword [esi + 4]
mov dword [eax], edx
add dword [esi + 4], 1
ret 8

Function at 0x3002fc3c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x3001d1b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
cmp dword [ebp + 8], 0x1004
je 0x3002fc68
cmp dword [ebp + 8], 0x4809
jne 0x3002fcd0
lea eax, [ebp - 0x318]
push eax
mov dword [ebp - 0x318], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x3002fcd0
cmp dword [ebp - 0x314], 6
jae 0x3002fcd0
push pe_nt_image_headers32
lea eax, [ebp - 0x204]
push eax
push 6
push dword [ebp + 8]
mov edi, 0x800a03ec
push 0
push dword [0x30225934]
push 0xffffffffffffffff
call fcn.30044084
cmp eax, 1
jle 0x3002fcd0
mov edi, dword [ebp + 0x10]
push ebx
lea eax, [ebp - 0x204]
dec edi
lea ebx, [esi + 2]
push eax
call fcn.3002f54c
mov word [esi], ax
xor edi, edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.3020156b
leave
ret 0xc
Function at 0x300320cd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
push ebx
push esi
mov esi, eax
lea eax, [esi + 0x32]
mov dword [esp + 0x24], eax
lea eax, [esi + 0x34]
mov dword [esp + 0x28], eax
lea eax, [esi + 0x36]
mov dword [esp + 0x2c], eax
lea eax, [esi + 0x38]
mov dword [esp + 0x30], eax
lea eax, [esi + 0x3a]
mov dword [esp + 0x34], eax
lea eax, [esi + 0x3c]
mov dword [esp + 0x38], eax
lea eax, [esi + 0x3e]
mov dword [esp + 0x3c], eax
lea eax, [esi + 0x40]
mov dword [esp + 0x40], eax
push edi
lea eax, [esi + 0x42]
mov dword [esp + 0x48], eax
lea eax, [esi + 0x44]
mov dword [esp + 0x4c], eax
lea ecx, [esp + 0x10]
push ecx
lea eax, [esi + 0x46]
push 0
mov dword [esp + 0x58], eax
mov ebx, 0x300259f0
lea eax, [esi + 0x50]
push ebx
mov dword [esp + 0x60], eax
mov eax, dword [esi + 0x1c]
push 0x30025b34
push eax
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], 0x30025a04
mov dword [esp + 0x74], 0x30025a18
mov dword [esp + 0x78], 0x30025a30
mov dword [esp + 0x7c], 0x30025a48
mov dword [esp + 0x80], 0x30025a68
mov dword [esp + 0x84], 0x30025a8c
mov dword [esp + 0x88], 0x30025ab0
mov dword [esp + 0x8c], 0x30025ad4
mov dword [esp + 0x90], 0x30025aec
mov dword [esp + 0x94], 0x30025b04
mov dword [esp + 0x98], 0x30025b18
mov dword [esp + 0x20], eax
call dword [sym.imp.MSO.dll_Ordinal_7019]
mov edi, 0x8007000e
cmp eax, edi
je 0x30032251
test eax, eax
jge 0x3003225a
lea eax, [esp + 0xc]
push eax
push dword [esi + 0x18]
call dword [sym.imp.MSO.dll_Ordinal_7013]
cmp eax, edi
je 0x30032251
test eax, eax
jl 0x30032267
lea eax, [esp + 0x10]
push eax
push 0
push ebx
push 0x30025b34
push dword [esp + 0x1c]
call dword [sym.imp.MSO.dll_Ordinal_7019]
cmp eax, edi
je 0x30032251
test eax, eax
jge 0x3003225a
lea eax, [esp + 0xc]
push eax
push dword [esi + 0x14]
mov esi, dword [sym.imp.MSO.dll_Ordinal_7013]
call esi
cmp eax, edi
je 0x30032251
test eax, eax
jl 0x30032267
lea eax, [esp + 0x10]
push eax
push 0
push ebx
push 0x30025b34
push dword [esp + 0x1c]
call dword [sym.imp.MSO.dll_Ordinal_7019]
cmp eax, edi
je 0x30032251
test eax, eax
jge 0x3003225a
lea eax, [esp + 0xc]
push eax
push 0x409
call esi
cmp eax, edi
jne 0x30032267
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.MSO.dll_Ordinal_7940]
jmp 0x3003224d
xor ebx, ebx
mov esi, dword [esp + ebx + 0x28]
and word [esi], 0
test eax, eax
jl 0x300322cd
lea eax, [esp + 0x10]
push eax
push 0
push dword [esp + ebx + 0x60]
push 0x30025b34
push dword [esp + 0x1c]
call dword [sym.imp.MSO.dll_Ordinal_7019]
test eax, eax
jl 0x300322cd
cmp dword [esp + 0x14], 1
jb 0x300322b1
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx]
test ecx, ecx
je 0x300322b1
movzx ecx, word [ecx]
test cx, cx
je 0x300322b1
mov word [esi], cx
jmp 0x300322b6
mov eax, 0x80004005
mov esi, eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.MSO.dll_Ordinal_7940]
cmp eax, edi
je 0x30032251
test esi, esi
jge 0x300322cd
mov eax, esi
add ebx, 4
cmp ebx, 0x30
jl 0x30032269
jmp 0x30032253
Function at 0x30044084
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
xor edi, edi
or ebx, 0xffffffff
cmp dword [ebp + 8], ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], eax
jne 0x300440b4
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.MSO.dll_Ordinal_7013]
test eax, eax
jge 0x300440b4
mov dword [ebp + 8], ebx
mov esi, dword [ebp + 0xc]
cmp esi, ebx
jne 0x300440be
mov esi, dword [ebp + 8]
cmp dword [ebp + 8], ebx
je 0x300440f9
mov ecx, dword [ebp + 0x18]
lea edx, [ebp - 0xc]
call fcn.3004403d
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0xc]
and eax, 1
mov dword [ebp - 0xc], eax
je 0x300440f4
cmp dword [ebp + 0x10], edi
jne 0x300440f4
lea eax, [ebp - 8]
push eax
push 1
call dword [sym.imp.MSO.dll_Ordinal_7289]
test eax, eax
jge 0x300440f4
mov dword [ebp - 8], edi
cmp dword [ebp + 0xc], ebx
jne 0x3004410d
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x30044168
test dword [ebp + 0x18], 0x80000000
mov eax, dword [ebp + 8]
push 0
pop ebx
push edi
push edi
push dword [ebp + 0x20]
setne bl
push dword [ebp + 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], esi
mov esi, dword [sym.imp.MSO.dll_Ordinal_7612]
inc ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x18], edi
push eax
call esi
cmp eax, edi
jne 0x30044168
cmp dword [ebp - 0xc], edi
je 0x30044168
cmp dword [ebp + 0x10], edi
jne 0x30044168
push edi
push edi
push dword [ebp + 0x20]
lea eax, [ebp - 0x1c]
push dword [ebp + 0x1c]
mov dword [ebp - 0x14], edi
push ebx
push dword [ebp + 0xc]
push eax
call esi
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x30044920
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push esi
push edi
mov esi, ecx
mov edi, eax
xor ebp, ebp
add esi, 8
test edi, edi
je 0x30044a0c
mov ax, word [esi]
cmp ax, word [edi]
jne 0x30044ad1
mov cx, word [esi + 2]
xor cx, word [edi + 2]
test cx, 0x7fff
jne 0x30044ad1
push ebx
mov ecx, esi
call fcn.3002f4ec
mov ecx, edi
mov ebx, eax
call fcn.3002f4ec
cmp ebx, eax
jne 0x30044ad9
cmp ebx, 4
mov eax, ebx
mov ecx, edi
mov edx, esi
jb 0x3004498b
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x3004498f
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x30044977
test eax, eax
je 0x300449fa
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x300449de
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x300449fa
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x300449de
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x300449fa
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x300449de
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x300449fa
movzx eax, byte [ecx]
movzx esi, byte [edx]
sub esi, eax
je 0x300449fa
test esi, esi
mov eax, 1
jg 0x300449fc
or eax, 0xffffffff
xor ecx, ecx
test eax, eax
sete cl
pop ebx
pop edi
pop esi
pop ebp
mov eax, ecx
ret 8
xor eax, eax
xor ecx, ecx
test eax, eax
sete cl
pop ebx
pop edi
pop esi
pop ebp
mov eax, ecx
ret 8
movzx ecx, word [esi + 2]
test ecx, 0x8000
jne 0x30044ad1
movzx eax, word [esi]
cmp eax, dword [esp + 0x14]
jne 0x30044ac9
test ecx, 0x7fff
jne 0x30044ac9
mov ecx, dword [esp + 0x10]
add eax, eax
cmp eax, 4
lea edx, [esi + 6]
jb 0x30044a57
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x30044a5b
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x30044a43
test eax, eax
je 0x30044ab8
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x30044aaa
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x30044ab8
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x30044aaa
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x30044ab8
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x30044aaa
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x30044ab8
movzx esi, byte [edx]
movzx edx, byte [ecx]
sub esi, edx
je 0x30044ab8
test esi, esi
mov eax, 1
jg 0x30044aba
or eax, 0xffffffff
jmp 0x30044aba
xor eax, eax
test eax, eax
jne 0x30044ac9
pop edi
pop esi
mov eax, 1
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebp
ret 8
pop edi
pop esi
mov eax, ebp
pop ebp
ret 8
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 8
Function at 0x30045fec
Capabilities:
Terminate process

Disassembly:
sub esp, 0xc
mov eax, dword [esi + 0x18]
test eax, eax
push ebx
push ebp
push edi
mov dword [esp + 0xc], eax
je 0x30046045
cmp dword [eax + 8], 1
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
jg 0x3004603a
mov edx, dword [eax]
mov dword [esi + 0x18], edx
cmp dword [eax], 0
je 0x30046020
mov eax, dword [eax]
mov dword [eax + 4], 0
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x3004602e
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x14]
mov dword [eax], ecx
mov edx, dword [esp + 0xc]
mov dword [esi + 0x14], edx
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 4
lea eax, [esp + 0xc]
push eax
mov eax, esi
call fcn.30046124
test eax, eax
jl 0x3004611b
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x38]
lea edi, [esi + 0x20]
push ecx
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
mov eax, edi
call fcn.3002f315
mov ebx, eax
test ebx, ebx
jge 0x300460c5
cmp ebx, 0x8002802b
jne 0x30046094
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.3002f01c
mov ebx, eax
test ebx, ebx
jl 0x3004610a
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
mov dword [edx + 4], 0
mov eax, dword [esp + 0xc]
mov dword [eax], 0
mov eax, dword [esp + 0xc]
mov dword [esi + 0x18], eax
mov dword [ecx], eax
mov eax, ebx
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 4
mov eax, dword [edi + 8]
mov ebp, eax
imul ebp, dword [esp + 0x10]
add ebp, dword [edi + 0xc]
test eax, eax
mov dword [esp + 0x14], eax
jns 0x300460f8
push 0
call dword [sym.imp.MSVCR80.dll_printf]
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
push eax
lea edx, [esp + 0x10]
push edx
push ebp
call dword [sym.imp.MSVCR80.dll_memmove]
add esp, 0xc
jmp 0x30046094
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [esp + 0xc]
mov edx, dword [edx + 8]
push eax
call edx
mov eax, ebx
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x300461b6
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push ebp
push edi
mov dword [esp + 0xc], 0
mov bl, 1
mov edi, edi
test bl, bl
je 0x300461da
mov eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x24]
jae 0x300461da
mov edi, eax
mov dword [esp + 0xc], edi
jmp 0x30046201
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x38]
lea eax, [esi + 0x20]
push ecx
push edx
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.3002f315
xor bl, bl
cmp eax, 0x8002802b
jne 0x30046263
mov edi, dword [esp + 0xc]
cmp edi, 1
jl 0x30046263
cmp edi, dword [esi + 0x24]
jg 0x30046263
lea ecx, [edi - 1]
test ecx, ecx
jl 0x30046222
cmp ecx, dword [esi + 0x20]
jge 0x30046222
mov eax, dword [esi + 0x28]
imul eax, ecx
add eax, dword [esi + 0x2c]
jmp 0x3004623e
push 0
call dword [sym.imp.MSVCR80.dll_printf]
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
mov ecx, dword [esi + 0xc]
mov eax, dword [eax]
mov edx, ecx
sub edx, dword [esi + 8]
lea edx, [edx + eax + 0x10]
cmp dword [esp + 0x14], edx
jb 0x30046263
mov ebp, dword [esi + 0x10]
sub ebp, 1
imul ebp, ecx
add ebp, edx
cmp dword [esp + 0x14], ebp
jbe 0x30046273
test bl, bl
mov eax, 0x800a03ec
je 0x300462b4
xor bl, bl
jmp 0x300461c6
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x1c], edi
cmp dword [eax + 8], 0
mov dword [ecx], eax
jne 0x300462b2
mov edx, dword [eax + 4]
test edx, edx
mov ecx, dword [eax]
je 0x3004628f
mov dword [edx], ecx
jmp 0x30046292
mov dword [esi + 0x14], ecx
test ecx, ecx
je 0x3004629c
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov ecx, dword [esi + 0x18]
test ecx, ecx
mov dword [eax], ecx
je 0x300462a8
mov dword [ecx + 4], eax
mov dword [esi + 0x18], eax
mov dword [eax + 4], 0
xor eax, eax
pop edi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x3004dd4d
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x30225acc], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x3004dd91
call ebx
test eax, eax
jns 0x3004dd87
push 0x30001cbc
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x30001cb0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x30225ac8], eax
mov dword [0x30225acc], 1
mov eax, dword [0x30225ac8]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x3004ddad
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x3004dddd
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x3004ddd3
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x3004ddc8
push dword [eax + 0xc]
call dword [eax + 8]
jmp 0x3004ddcd
push dword [eax + 4]
call dword [eax]
test eax, eax
je 0x3004dddc
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc
Function at 0x300605ef
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [0x3022bb48], 1
jne 0x30060604
mov eax, dword [0x3022b69c]
leave
ret
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x10
call esi
xor ebx, ebx
test ax, ax
mov dword [ebp - 8], 4
jl 0x30060622
mov dword [ebp - 8], ebx
push 0x11
call esi
test ax, ax
mov dword [ebp - 4], 8
jl 0x30060635
mov dword [ebp - 4], ebx
push 0x12
call esi
test ax, ax
jge 0x30060641
push 0x20
pop ebx
push 0x14
call esi
push 0x90
and eax, 1
lea edi, [eax + eax]
call esi
push 0x91
and eax, 1
or eax, edi
mov edi, eax
shl edi, 2
call esi
and eax, 1
or eax, edi
shl eax, 8
or eax, ebx
or eax, dword [ebp - 4]
pop edi
or eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret

Function at 0x300606e7
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call esi
test ax, ax
jl 0x3006070d
push 2
call esi
test ax, ax
jl 0x3006070d
push 4
call esi
test ax, ax
jl 0x3006070d
xor eax, eax
pop esi
ret
xor eax, eax
inc eax
pop esi
ret