joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415410
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x488240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x20], 0
mov esi, edx
cmp dword [edi + 0x14], 8
jb 0x415438
mov ebx, dword [edi]
jmp 0x41543a
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41547a
test al, 0x10
je 0x41545d
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b1e4
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x415467
mov dword [esi], 0xfffffff7
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b1e4
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.0040ab00
cmp dword [edi + 0x14], 8
jb 0x41548f
mov eax, dword [edi]
jmp 0x415491
mov eax, edi
push dword [edi + 0x10]
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0xc]
push 0
call fcn.00408570
test eax, eax
jne 0x4154b4
test esi, esi
je 0x4154fb
mov dword [esi], 0xfffffffc
xor bl, bl
jmp 0x415501
mov edx, esi
lea ecx, [ebp - 0x1c]
call fcn.00415410
test al, al
jne 0x4154c6
xor bl, bl
jmp 0x415501
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4154ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
jne 0x4154ee
mov ecx, edi
call fcn.004150e0
test al, al
jne 0x4154ff
test esi, esi
je 0x4154fb
mov ecx, ebx
call fcn.00415c40
mov dword [esi], eax
xor bl, bl
jmp 0x415501
mov bl, 1
cmp dword [ebp - 8], 8
jb 0x415512
push dword [ebp - 0x1c]
call fcn.0043aa53
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b1e4
mov esp, ebp
pop ebp
ret

Function at 0x415530
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x488240]
xor eax, esp
mov dword [esp + 0x258], eax
xor eax, eax
push esi
mov esi, dword [ebp + 8]
mov word [esp + 0x50], ax
lea eax, [esp + 0x50]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x415615
cmp eax, 0x104
ja 0x415615
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x24]
call fcn.004073b0
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
call fcn.0040a700
mov ecx, eax
call fcn.0040b000
cmp esi, eax
je 0x4155b0
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00407a60
cmp dword [esp + 0x1c], 8
jb 0x4155c3
push dword [esp + 8]
call fcn.0043aa53
add esp, 4
xor eax, eax
mov dword [esp + 0x1c], 7
cmp dword [esp + 0x4c], 8
mov dword [esp + 0x18], 0
mov word [esp + 8], ax
jb 0x4155ed
push dword [esp + 0x38]
call fcn.0043aa53
add esp, 4
cmp dword [esp + 0x34], 8
jb 0x415600
push dword [esp + 0x20]
call fcn.0043aa53
add esp, 4
mov al, 1
pop esi
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.0043b1e4
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x25c]
xor al, al
pop esi
xor ecx, esp
call fcn.0043b1e4
mov esp, ebp
pop ebp
ret
Function at 0x415fb0
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x488240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
mov eax, 0x1400
cmp ax, di
je 0x41605f
push 9
lea eax, [ebp - 0x18]
mov ebx, edi
push eax
push 0x59
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, 1
jle 0x41605f
mov ecx, dword [ebp - 0x1c]
dec eax
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004082b0
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x416017
mov eax, dword [esi]
jmp 0x416019
mov eax, esi
xor ecx, ecx
and edi, 0xfc00
mov word [eax], cx
xor eax, eax
cmp ax, di
je 0x41604c
push 9
lea eax, [ebp - 0x18]
push eax
push 0x5a
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, 1
jle 0x41604c
dec eax
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004082b0
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b1e4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b1e4
mov esp, ebp
pop ebp
ret
Function at 0x4189a0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
push ebx
push esi
mov esi, edx
mov dword [esp + 8], ecx
xor ebx, ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebx
push edi
test esi, esi
je 0x418a11
mov dword [esp + 0x10], 0xffffffff
jmp 0x4189d0
lea edx, [esp + 0x14]
cmp esi, 0xffffffff
lea eax, [esp + 0x10]
cmovbe eax, edx
mov edi, dword [eax]
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x418a18
test bl, 1
je 0x4189fd
lea ecx, [esp + 0x18]
and ebx, 0xfffffffe
call fcn.0040c480
mov ecx, dword [esp + 0xc]
sub esi, edi
add ecx, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], ecx
test esi, esi
jne 0x4189d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00410d40
int3
Function at 0x41a1a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x488240]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x40], 0
je 0x41a2e4
cmp byte [ebx + 0x45], 0
je 0x41a2e4
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x41a1ed
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0043b1e4
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
mov byte [esp + 0x14], 0
xorps xmm0, xmm0
mov dword [esp + 0x28], ecx
cmp ecx, 0x10
movq qword [esp + 0x14], xmm0
lea eax, [esp + 0x14]
mov dword [esp + 0x24], 8
cmovae eax, dword [esp + 0x14]
mov byte [eax + 8], 0
lea esp, [esp]
cmp dword [esp + 0x28], 0x10
lea eax, [esp + 0x10]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x14]
cmovae edi, dword [esp + 0x14]
lea esi, [esp + 0x14]
cmovae esi, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x28]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x41a261
dec eax
je 0x41a265
sub eax, 2
je 0x41a2bb
xor bl, bl
jmp 0x41a2bd
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x14]
mov edx, dword [esp + 0x14]
cmp ecx, 0x10
mov esi, dword [esp + 0x10]
cmovae eax, edx
sub esi, eax
je 0x41a29c
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x18]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0043e78d
add esp, 0x10
cmp esi, eax
jne 0x41a25d
cmp byte [ebx + 0x45], 0
je 0x41a2bb
test esi, esi
jne 0x41a220
push esi
push 8
lea ecx, [esp + 0x1c]
call fcn.0040ede0
jmp 0x41a220
mov bl, 1
cmp dword [esp + 0x28], 0x10
jb 0x41a2d0
push dword [esp + 0x14]
call fcn.0043aa53
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0043b1e4
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043b1e4
mov esp, ebp
pop ebp
ret

Function at 0x41bc40
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
call fcn.0041bd10
test al, al
je 0x41bcad
mov eax, dword [0x489670]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x41bc65
call fcn.0041d3a0
mov ecx, eax
mov eax, dword [0x48c2ac]
cmp dword [ecx + eax*4], 0
jne 0x41bcad
push 0x70
call fcn.0043aa02
add esp, 4
test eax, eax
je 0x41bc8a
push esi
mov ecx, eax
call fcn.0041ba30
mov esi, eax
jmp 0x41bc8c
xor esi, esi
mov eax, dword [0x489670]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x41bca5
call fcn.0041d3a0
mov ecx, eax
mov eax, dword [0x48c2ac]
mov dword [ecx + eax*4], esi
pop esi
ret
Function at 0x41d3a0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x488240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x489670]
mov dword [ebp - 0x40c], 0
mov dword [ebp - 0x40c], ebx
push esi
push edi
cmp ebx, 0xffffffff
jne 0x41d40e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ebx, eax
mov dword [ebp - 0x40c], ebx
cmp ebx, 0xffffffff
je 0x41d47a
mov ecx, ebx
mov edx, 0x489670
or eax, 0xffffffff
lock cmpxchg dword [edx], ecx
cmp eax, 0xffffffff
je 0x41d40e
push ebx
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov ebx, dword [0x489670]
mov dword [ebp - 0x40c], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x41d47a
push 0x400
push eax
lea eax, [ebp - 0x408]
push eax
call fcn.0043d980
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x400
call fcn.00439f0a
add esp, 4
lea esi, [ebp - 0x408]
mov ebx, eax
mov ecx, 0x100
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b1e4
mov esp, ebp
pop ebp
ret
call fcn.00410d40
int3

Function at 0x41d480
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
mov eax, dword [0x488240]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [0x489670]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], 0
push edi
mov ecx, 0x100
mov dword [esp + 0xc], eax
mov esi, ebx
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.0043d563
add esp, 4
mov edi, 0x100
jmp 0x41d4e0
mov esi, dword [0x48c6d0]
xor dl, dl
test esi, esi
jle 0x41d518
lea esp, [esp]
mov ecx, dword [esp + esi*4 + 0x10]
test ecx, ecx
je 0x41d513
mov eax, dword [esi*4 + 0x48c2d0]
test eax, eax
je 0x41d513
push ecx
mov dword [esp + esi*4 + 0x14], 0
call eax
add esp, 4
mov dl, 1
dec esi
test esi, esi
jg 0x41d4f0
dec edi
test edi, edi
jle 0x41d521
test dl, dl
jne 0x41d4e0
push 0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043b1e4
mov esp, ebp
pop ebp
ret
Function at 0x41d6b0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ecx + 4]
xor edx, edx
push edi
mov dword [ebp - 4], esi
mov ebx, dword [esi + 0x3c]
add ebx, esi
xor edi, edi
movzx ecx, word [ebx + 6]
cmp edx, ecx
jae 0x41d70b
movzx eax, word [ebx + 0x14]
lea ecx, [ebx + 0x18]
add eax, edi
add ecx, eax
je 0x41d70b
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x41d6e6
xor esi, esi
jmp 0x41d6ed
add esi, eax
cmp esi, dword [ebp + 8]
ja 0x41d6f7
mov eax, dword [ecx + 8]
add eax, esi
cmp eax, dword [ebp + 8]
ja 0x41d700
mov esi, dword [ebp - 4]
inc edx
add edi, 0x28
jmp 0x41d6c6
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41d8a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 4], ebx
test edi, edi
jne 0x41d8be
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 4]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov eax, dword [ebx]
push dword [ecx + 0x78]
mov ecx, ebx
call dword [eax]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x41d95a
mov eax, dword [ebp + 8]
cmp eax, 0xffff
ja 0x41d8f5
pop esi
mov word [edi], ax
mov al, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx]
mov ecx, ebx
push dword [esi + 0x20]
call dword [eax]
mov ecx, dword [esi + 0x18]
mov ebx, eax
mov dword [ebp - 0xc], eax
lea edi, [eax + ecx*4]
cmp eax, edi
je 0x41d95a
lea ecx, [ecx]
mov ecx, dword [ebp - 4]
mov eax, edi
sub eax, ebx
sar eax, 2
cdq
sub eax, edx
sar eax, 1
push dword [ebx + eax*4]
lea esi, [ebx + eax*4]
mov eax, dword [ecx]
call dword [eax]
mov edx, dword [ebp + 8]
mov ecx, edx
mov dl, byte [edx]
test dl, dl
je 0x41d941
cmp dl, byte [eax]
jne 0x41d941
mov dl, byte [ecx + 1]
inc ecx
inc eax
test dl, dl
jne 0x41d934
movzx eax, byte [eax]
movzx ecx, byte [ecx]
sub ecx, eax
je 0x41d965
test ecx, ecx
jle 0x41d954
lea ebx, [esi + 4]
jmp 0x41d956
mov edi, esi
cmp ebx, edi
jne 0x41d910
pop esi
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov eax, dword [ecx]
push dword [edi + 0x24]
call dword [eax]
sub esi, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
sar esi, 2
mov ax, word [eax + esi*2]
add ax, word [edi + 0x10]
pop esi
pop edi
mov word [ecx], ax
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41d9a0
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [ecx + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x41d9b0
xor al, al
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41d9ad
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x41d9ad
mov ecx, 0x10b
cmp word [eax + 0x18], cx
sete al
ret
Function at 0x41da8d
Capabilities:
Log keystrokes via polling
Set environment variable

Disassembly:
push edi
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x12
movzx edi, ax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
movzx eax, ax
test ecx, edi
pop edi
je 0x41dac2
test ecx, eax
je 0x41dac2
push 0x45a460
push str.CHROME_SAFE_MODE
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
ret

Function at 0x41e380
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x41e391
mov eax, dword [esi]
jmp 0x41e393
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push dword [ebp + 0xc]
call fcn.00405850
pop ecx
push eax
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00409510
cmp byte [ebp + 0x10], 0
je 0x41e3d4
call fcn.0041deb9
cmp dword [esi + 0x14], 8
jb 0x41e3c3
mov ecx, dword [esi]
jmp 0x41e3c5
mov ecx, esi
push 0x100000
push eax
push ecx
call fcn.004225a7
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x41e3dc
mov esi, dword [esi]
push 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
pop esi
pop ebp
ret

Function at 0x41fe4e
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x488240]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
xor edi, edi
mov word [ebp - 0x20c], ax
push 0x206
lea eax, [ebp - 0x20a]
mov dword [ebp - 0x240], edi
push edi
push eax
call fcn.0043d980
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push 0x26
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x41ff01
push ebx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x23c]
call fcn.004073b0
push esi
lea ecx, [ebp - 0x224]
call fcn.004073b0
push edi
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00414030
add esp, 0xc
lea ecx, [ebp - 0x224]
mov bl, al
neg bl
push edi
sbb bl, bl
push 1
inc bl
call fcn.00407d10
push edi
push 1
lea ecx, [ebp - 0x23c]
call fcn.00407d10
mov al, bl
pop ebx
jmp 0x41ff03
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043b1e4
mov esp, ebp
pop ebp
ret
Function at 0x422888
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x14], edi
call fcn.0040bc00
cmp eax, 1
jle 0x422960
push edi
push 0x8000000
push 3
push edi
push 7
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.chrome_elf.dll_CreateFileW]
push eax
lea ecx, [ebp - 4]
mov dword [ebp - 4], edi
call fcn.00415630
push dword [ebp - 4]
call fcn.00414f70
pop ecx
test al, al
je 0x422906
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x14]
mov esi, 0x100000
mov dword [ebp - 0x14], eax
cmp eax, esi
mov dword [ebp - 0x10], esi
lea ecx, [ebp - 0x10]
cmovae ecx, edx
push 4
push 0x1000
mov ebx, dword [ecx]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x422933
lea ecx, [ebp - 4]
call fcn.004156b0
xor al, al
jmp 0x4229c6
cmp dword [ebp - 8], 0
jbe 0x422948
cmp edi, dword [ebp + 0xc]
sbb ecx, ecx
xor eax, eax
neg ecx
inc eax
cmp dword [ebp + 0xc], 0
cmovne eax, ecx
test eax, eax
je 0x422948
add edi, dword [ebp - 8]
push 0
lea eax, [ebp - 8]
push eax
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x422915
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
lea ecx, [ebp - 4]
call fcn.004156b0
jmp 0x4229c4
push 9
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x42290e
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0x4827e8
mov dword [ebp - 8], esi
call fcn.0041d9a0
test al, al
jne 0x42298d
call fcn.00410d40
lea ecx, [ebp - 0xc]
call fcn.0041d640
lea ecx, [ebp - 0x14]
mov edx, dword [eax + 0x50]
or eax, 0xffffffff
cmp dword [ebp + 0xc], edi
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], edx
cmovne eax, dword [ebp + 0xc]
cmp edx, eax
mov dword [ebp - 0x10], eax
cmovae ecx, edi
push dword [ecx]
push esi
call fcn.00422add
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x422add
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
and dword [ebp - 4], 0
xor eax, eax
push edi
push 9
pop ecx
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x24]
mov ecx, 0x1000
mov edx, dword [ebp + 0xc]
test eax, eax
pop edi
cmove eax, ecx
mov ecx, dword [ebp + 8]
dec edx
mov dword [ebp - 0x24], eax
add edx, ecx
jmp 0x422b1d
mov al, byte [ecx]
add ecx, dword [ebp - 0x24]
cmp ecx, edx
jb 0x422b18
mov al, byte [edx]
mov esp, ebp
pop ebp
ret
Function at 0x422bcf
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push dword [ebp + 0x14]
call fcn.004238e2
pop ecx
test al, al
jne 0x422c40
call fcn.00438cad
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x14]
test al, al
je 0x422c40
push esi
push 0x40
xor esi, esi
mov dword [ebp - 0x54], 0x44
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.0043d980
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x400
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x422c3f
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
pop esi
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x4234d1
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push str.NtTerminateProcess
xor ebx, ebx
push 0x45e878
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4235cb
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push esi
mov dword [ebp - 4], ebx
call edi
test eax, eax
je 0x4235ca
push 0x40
push 0x1000
push 0x20
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [0x48a32c], eax
test eax, eax
je 0x4235ca
push 0
push 0x20
push eax
push 0x422da8
push esi
mov dword [0x48a00c], 0x48a060
mov dword [0x48a008], 0x48a010
call fcn.00423ff6
add esp, 0x14
test eax, eax
je 0x423597
push 0x8000
push 0
push dword [0x48a32c]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x42358b
call fcn.00410d40
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 5
push esi
jmp 0x4235bf
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push 5
push esi
call edi
test eax, eax
jne 0x4235b0
call fcn.00410d40
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 0x20
push dword [0x48a32c]
call edi
test eax, eax
jne 0x4235ca
call fcn.00410d40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4237c9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push eax
push 0x422c46
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
pop ebp
ret

Function at 0x4237e3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push eax
push 0x422cc5
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
pop ebp
ret
Function at 0x42444a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x488240]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push eax
call fcn.00407380
mov esi, 0x45e948
push esi
call fcn.00405850
pop ecx
push eax
push esi
push 4
xor ebx, ebx
lea ecx, [ebp - 0x1c]
push ebx
call fcn.00408570
test eax, eax
jne 0x4244c0
push 0xffffffffffffffff
mov word [ebp - 0x34], ax
lea ecx, [ebp - 0x34]
push 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 7
push eax
mov dword [ebp - 0x24], ebx
call fcn.00407a60
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00407480
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.00407d10
lea eax, [ebp - 0x1c]
push eax
call fcn.004243d5
pop ecx
test al, al
je 0x4244d5
mov byte [edi], bl
jmp 0x42456c
or eax, 0xffffffff
push eax
xor ecx, ecx
mov dword [ebp - 0x20], 7
push ebx
lea eax, [ebp - 0x1c]
mov word [ebp - 0x34], cx
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x24], ebx
call fcn.00407a60
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00407480
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.00407d10
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42453d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x424544
cmp esi, 3
je 0x424544
cmp esi, 0x7b
jne 0x42456e
jmp 0x424544
test eax, 0x400
jne 0x424569
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0x5c
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040b6c0
cmp eax, 2
ja 0x4244d8
jmp 0x4244ce
mov byte [edi], 1
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x1c]
call fcn.00407d10
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b1e4
mov esp, ebp
pop ebp
ret