joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ba80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
push str.GetValue
call fcn.0042ae40
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 8
xor esi, esi
lea eax, [esp + 0xc]
push eax
push esi
lea ecx, [esp + 0x18]
push ecx
push esi
push edi
push ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call ebp
test eax, eax
jne 0x42bb18
mov eax, dword [esp + 0xc]
test eax, eax
jbe 0x42bb18
add eax, 2
push eax
mov dword [esp + 0x10], eax
call fcn.00455056
add esp, 4
lea edx, [esp + 0xc]
push edx
mov esi, eax
push esi
lea eax, [esp + 0x18]
push eax
push 0
push edi
push ebx
mov dword [esp + 0x28], 0
call ebp
test eax, eax
jne 0x42bb18
cmp dword [esp + 0x10], 1
jne 0x42bafd
mov ecx, dword [esp + 0xc]
mov word [ecx + esi], ax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x42bb0b
mov edx, dword [esp + 0x10]
mov dword [eax], edx
cmp dword [esp + 0x1c], 0
je 0x42bb18
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
mov edx, dword [esp + 0x10]
push edx
push str.Type
call fcn.0042b540
mov eax, dword [esp + 0x14]
push eax
push str.DataSize
call fcn.0042b540
add esp, 0x10
cmp dword [esp + 0x10], 1
jne 0x42bb5a
push str.GetValue
push str.String
call fcn.0042b0b0
add esp, 8
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
push esi
push str.GetValue
push str.CRegistryIF
call fcn.0042b330
add esp, 0xc
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret

Function at 0x42bcd0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, eax
push edi
push str.SetStringValue
mov ebx, ecx
call fcn.0042ae40
push 0
push 0
call fcn.0042ba80
push edi
push str.DeleteEntry
mov esi, eax
call fcn.0042ae40
add esp, 0x18
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push eax
push str.DeleteEntry
push str.CRegistryIF
call fcn.0042b190
add esp, 0xc
test esi, esi
je 0x42bd28
push esi
call fcn.0045505b
add esp, 4
mov eax, ebp
call fcn.004354e0
lea eax, [eax + eax + 2]
push eax
push ebp
push 1
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push esi
push str.SetStringValue
push str.CRegistryIF
call fcn.0042b190
add esp, 0xc
pop edi
xor eax, eax
test esi, esi
pop esi
pop ebp
sete al
pop ebx
ret

Function at 0x42bd70
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebx
push esi
push edi
mov edi, eax
push edi
push str.SetBinaryValue
mov ebx, ecx
call fcn.0042ae40
push 0
push 0
call fcn.0042ba80
push edi
push str.DeleteEntry
mov esi, eax
call fcn.0042ae40
add esp, 0x18
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push eax
push str.DeleteEntry
push str.CRegistryIF
call fcn.0042b190
add esp, 0xc
test esi, esi
je 0x42bdc3
push esi
call fcn.0045505b
add esp, 4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push 4
push eax
push ecx
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push esi
push str.SetBinaryValue
push str.CRegistryIF
call fcn.0042b190
add esp, 0xc
xor eax, eax
pop edi
test esi, esi
pop esi
sete al
pop ebx
ret
Function at 0x42c870
Capabilities:
Check http status code

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0xa
mov edi, eax
mov dword [esp + 0x18], 2
mov dword [esp + 0x20], ebx
call fcn.0042ca00
add esp, 4
cmp eax, ebx
jne 0x42c899
xor esi, esi
jmp 0x42c8a2
mov ecx, dword [edi + 0xc]
push ebx
push ecx
call eax
mov esi, eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp esi, ebx
je 0x42c9e3
push 8
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
call fcn.0042ca00
add esp, 4
cmp eax, ebx
jne 0x42c8cc
xor esi, esi
jmp 0x42c8ed
push ebx
lea edx, [esp + 0x1c]
push edx
mov edx, dword [edi + 0xc]
lea ecx, [esp + 0x24]
push ecx
push ebx
push 0x20000013
push edx
mov dword [esp + 0x30], 4
call eax
mov esi, eax
call ebp
cmp esi, ebx
je 0x42c9cd
cmp dword [esp + 0x1c], 0xc8
jne 0x42c9cd
push 8
call fcn.0042ca00
add esp, 4
cmp eax, ebx
jne 0x42c917
xor esi, esi
jmp 0x42c938
push ebx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [edi + 0xc]
lea edx, [esp + 0x18]
push edx
push ebx
push 0x20000005
push ecx
mov dword [esp + 0x30], 4
call eax
mov esi, eax
call ebp
cmp esi, ebx
je 0x42c9c3
mov eax, dword [esp + 0x10]
add eax, 2
push eax
mov dword [esp + 0x14], eax
call fcn.00455056
add esp, 4
mov esi, eax
call ebp
cmp esi, ebx
je 0x42c9d5
mov edx, dword [esp + 0x10]
push edx
push ebx
push esi
call fcn.0047c3b0
push 9
call fcn.0042ca00
add esp, 0x10
cmp eax, ebx
jne 0x42c97c
xor edi, edi
jmp 0x42c98f
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [edi + 0xc]
push edx
push esi
push ecx
call eax
mov edi, eax
call ebp
cmp edi, ebx
je 0x42c9b8
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
push esi
mov byte [esi + edx], bl
call fcn.00423560
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x42c9b4
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov dword [esp + 0x14], ebx
push esi
call fcn.0045505b
add esp, 4
jmp 0x42c9d5
mov dword [esp + 0x1c], 6
jmp 0x42c9d5
mov dword [esp + 0x14], 3
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x42c9e3
mov edx, dword [esp + 0x1c]
mov dword [eax], edx
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
Function at 0x432130
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x120
mov eax, dword [0x4bea30]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebp
mov ebp, dword [esp + 0x128]
push esi
push 0x100
call fcn.00455056
add esp, 4
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x432285
cmp byte [esi + 0x11], 0
jge 0x432285
push 0x11c
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0047c3b0
add esp, 0xc
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp byte [esi + 0x30], 0
mov eax, 5
lea edx, [eax - 3]
lea ecx, [eax - 4]
jl 0x4321fc
cmp byte [esi + 0x60], 0
jl 0x4321fc
cmp byte [esi + 0x31], 0
jl 0x4321f4
cmp byte [esi + 0x61], 0
jl 0x4321f4
cmp byte [esi + 0x32], 0
jl 0x4321ec
cmp byte [esi + 0x62], 0
jl 0x4321ec
cmp byte [esi + 0x33], 0
jl 0x4321e3
cmp byte [esi + 0x63], 0
jl 0x4321e3
cmp byte [esi + 0x34], 0
jl 0x4321e3
cmp byte [esi + 0x64], 0
jge 0x432206
mov dword [edi + 4], 6
jmp 0x4321ff
mov dword [edi + 4], eax
mov dword [edi + 8], edx
jmp 0x432206
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
jmp 0x432206
mov dword [edi + 4], eax
mov dword [edi + 8], 0
cmp byte [esi + 0x38], 0
jl 0x432227
cmp byte [esi + 0x68], 0
jl 0x432227
cmp byte [esi + 0x39], 0
jl 0x43221e
cmp byte [esi + 0x69], 0
jge 0x43222d
mov byte [edi + 0x11a], 3
jmp 0x43222d
mov byte [edi + 0x11a], cl
cmp byte [esi + 0x36], 0
jl 0x432266
cmp byte [esi + 0x66], 0
jl 0x432266
cmp byte [esi + 0x37], 0
jl 0x432245
cmp byte [esi + 0x67], 0
jge 0x432285
mov word [ebp], 9
cmp dword [edi + 4], eax
jne 0x432285
cmp dword [edi + 8], ecx
jne 0x432285
cmp dword [esp + 0xc], eax
jne 0x432285
cmp dword [esp + 0x10], ecx
jne 0x432285
mov dword [edi + 8], edx
jmp 0x432285
mov word [ebp], 0
cmp dword [edi + 4], eax
jne 0x432285
cmp dword [edi + 8], edx
jne 0x432285
cmp dword [esp + 0xc], eax
jne 0x432285
cmp dword [esp + 0x10], edx
jne 0x432285
mov dword [edi + 8], ecx
push esi
call fcn.0045505b
mov ecx, dword [esp + 0x128]
add esp, 4
pop esi
pop ebp
xor ecx, esp
call fcn.0047a105
add esp, 0x120
ret 4
Function at 0x4334c0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
push edi
push 0
push 0
call ebp
mov esi, eax
add esi, 1
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00455056
add esp, 4
mov edi, eax
push edi
push esi
call ebp
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push eax
call esi
push edi
mov ebx, eax
call esi
push edi
call fcn.0045505b
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret

Function at 0x4338e0
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push ebp
push esi
push edi
xor edi, edi
call fcn.0045ed7b
mov eax, dword [eax + 8]
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0xa
push 0x66
push eax
call ebp
mov esi, eax
test esi, esi
je 0x4339b2
call fcn.0045ed7b
mov eax, dword [eax + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4339b2
mov edi, dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push eax
call edi
mov ebx, eax
call fcn.0045ed7b
mov eax, dword [eax + 8]
push 0xa
push 0x67
push eax
call ebp
mov esi, eax
test esi, esi
je 0x4339aa
call fcn.0045ed7b
mov eax, dword [eax + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call edi
mov ebp, dword [esp + 0x18]
push 0
push 0
push 2
push 0
push 0
push 0xc0000000
mov esi, eax
push ebp
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4339aa
push 0
lea eax, [esp + 0x14]
push eax
push esi
push ebx
push edi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x4339a2
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x433f30
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x49369b
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x4bea30]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bea30]
xor eax, esp
push eax
lea eax, [esp + 0x284]
mov dword fs:[0], eax
mov eax, dword [esp + 0x294]
mov esi, ecx
xor edi, edi
cmp esi, edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edi
je 0x4340db
cmp word [esi], di
je 0x4340db
push esi
lea ecx, [esp + 0x1c]
call fcn.00404740
lea ecx, [esp + 0x18]
push ecx
mov ebx, str..emi
mov dword [esp + 0x290], edi
call fcn.004339c0
mov eax, dword [esp + 0x1c]
add esp, 4
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x28], edi
je 0x4340aa
mov ecx, dword [esp + 0x2c]
shr ecx, 4
not ecx
test cl, 1
je 0x43408f
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x433ff0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.00404b00
lea edx, [esp + 0x18]
push edx
lea ebx, [esp + 0x5c]
call fcn.004339c0
mov eax, dword [esp + 0x1c]
push eax
call fcn.00434420
add esp, 8
test eax, eax
je 0x43408f
mov ecx, ebx
mov ebx, dword [esp + 0x20]
push ecx
call fcn.00433b80
mov ebp, eax
lea eax, [esp + 0x5c]
call fcn.004354e0
mov esi, eax
add esi, 1
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00455056
add esp, 8
cmp esi, 0x7fffffff
mov edi, eax
ja 0x434077
lea eax, [esp + 0x58]
mov edx, esi
mov ecx, edi
call fcn.00402840
push 1
push edi
push ebp
mov ecx, ebx
call fcn.0045b0ea
add dword [esp + 0x1c], 1
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x433fd5
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x28c], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4340d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
jmp 0x4340dd
xor eax, eax
mov ecx, dword [esp + 0x284]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.0047a105
add esp, 0x27c
ret
Function at 0x4347c0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov eax, dword [0x4bea30]
xor eax, esp
mov dword [esp + 0x268], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0
call fcn.004354e0
mov esi, eax
mov eax, edi
call fcn.004354e0
lea ebx, [esi + eax + 0x104]
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00455056
add esp, 4
cmp ebx, 0x7fffffff
mov esi, eax
ja 0x434842
mov eax, edi
mov edx, ebx
mov ecx, esi
call fcn.00402840
mov eax, dword [esp + 0x18]
push eax
mov eax, esi
call fcn.00430470
add esp, 4
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
je 0x4348c9
mov edx, dword [esp + 0x20]
shr edx, 4
not edx
test dl, 1
je 0x4348aa
cmp ebx, 0x7fffffff
ja 0x434887
mov eax, edi
mov edx, ebx
mov ecx, esi
call fcn.00402840
lea eax, [esp + 0x4c]
push eax
mov eax, esi
call fcn.00430470
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
push esi
push edi
call dword [esp + 0x28]
test eax, eax
je 0x4348aa
add dword [esp + 0x10], 1
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x434866
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp + 0x14]
not edx
test dl, 1
je 0x4349aa
cmp ebx, 0x7fffffff
ja 0x4348ea
mov eax, edi
mov edx, ebx
mov ecx, esi
call fcn.00402840
push 0x4a7168
mov eax, esi
call fcn.00430470
add esp, 4
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
je 0x4349aa
test byte [esp + 0x20], 0x10
je 0x434987
lea ecx, [esp + 0x4c]
push 0x4a2e38
push ecx
call fcn.0047a268
add esp, 8
test eax, eax
je 0x434987
lea edx, [esp + 0x4c]
push 0x4a72f8
push edx
call fcn.0047a268
add esp, 8
test eax, eax
je 0x434987
cmp ebx, 0x7fffffff
ja 0x434958
mov eax, edi
mov edx, ebx
mov ecx, esi
call fcn.00402840
lea eax, [esp + 0x4c]
push eax
mov eax, esi
call fcn.00430470
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov eax, dword [ebp + 0x14]
push 0
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
push esi
push edi
call fcn.004347c0
add esp, 0x20
add dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x434912
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call fcn.0045505b
mov ecx, dword [esp + 0x278]
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047a105
mov esp, ebp
pop ebp
ret
Function at 0x434ae0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x493600
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x4bea30]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
mov eax, dword [ebp + 0x2c]
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], 0
call fcn.00404740
mov dword [esp + 0x28], 0
mov edx, dword [esp + 0x30]
mov eax, dword [edx - 0xc]
lea esi, [eax + 0x10d]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x434b53
push esi
lea ecx, [esp + 0x34]
call fcn.004044c0
mov edx, dword [esp + 0x30]
push str.Setup.epi
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, dword [esp + 0x30]
test edx, edx
jne 0x434b6b
xor eax, eax
jmp 0x434b85
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x434b70
sub eax, esi
sar eax, 1
js 0x434c9a
cmp eax, dword [edx - 8]
jg 0x434c9a
mov dword [edx - 0xc], eax
mov ecx, dword [esp + 0x30]
mov word [ecx + eax*2], 0
mov esi, 1
call fcn.0045ed7b
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x48]
lea edx, [esp + 0x18]
push edx
call fcn.00422880
lea eax, [esp + 0x30]
push eax
push 0x4a875c
lea eax, [esp + 0x20]
mov byte [esp + 0x30], 1
call fcn.004229a0
test eax, eax
je 0x434bd5
xor esi, esi
jmp 0x434be8
lea ecx, [esp + 0x30]
push ecx
push 0x4a8764
lea eax, [esp + 0x20]
call fcn.004229a0
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x434c2c
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x434c2c
test esi, esi
je 0x434c17
mov ecx, dword [esp + 0x34]
push ecx
push ebp
call fcn.00434cb0
jmp 0x434c28
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push edx
call fcn.00422ab0
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x18], vtable.CCmdlineParser.0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x434c59
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x434c81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret 8
push 0x80070057
call fcn.004022b0
int3
Function at 0x435d30
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 1
mov ecx, ebp
call fcn.004360e0
mov esi, eax
test esi, esi
jne 0x435dc0
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test ebx, ebx
jbe 0x435dc0
mov eax, dword [edi]
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, ebx
or ecx, edx
jge 0x435d74
push ebx
mov ecx, edi
call fcn.004044c0
mov eax, dword [edi]
push ebx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edx, dword [edi]
test edx, edx
jne 0x435d89
xor ecx, ecx
jmp 0x435da1
mov ecx, edx
lea ebx, [ecx + 2]
mov edi, edi
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x435d90
sub ecx, ebx
sar ecx, 1
js 0x435dc8
cmp ecx, dword [edx - 8]
jg 0x435dc8
mov dword [edx - 0xc], ecx
mov edx, dword [edi]
mov word [edx + ecx*2], 0
mov ecx, dword [edi]
mov edx, dword [ecx - 0xc]
add edx, 1
cmp edx, eax
sbb esi, esi
add esi, 1
mov eax, esi
pop esi
pop ebp
pop ebx
ret 4
push 0x80070057
call fcn.004022b0
int3
Function at 0x436da0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x493e88
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4bea30]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
test edi, edi
je 0x436fc5
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x436fc5
push 3
call fcn.00436900
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x436fc5
push 2
lea eax, [esp + 0x20]
push eax
push 0
push esi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, eax
test edi, edi
mov dword [esp + 0x28], edi
jbe 0x436fbe
mov ecx, SysReAllocString
mov eax, ebx
call fcn.0042d9f0
lea eax, [eax + eax + 0x104]
mov dword [esp + 0x24], eax
add eax, edi
push eax
call fcn.00455056
add esp, 4
push 0
lea ecx, [esp + 0x20]
push ecx
push 0
push esi
mov ebx, eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [esp + 0x24]
push edx
push edi
push ebx
push esi
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x436fb5
lea ecx, [esp + 0x14]
call fcn.00402380
mov eax, dword [esp + 0x24]
push eax
lea ecx, [ebx + edi]
push 0
push ecx
mov dword [esp + 0x44], 0
call fcn.0047c3b0
mov edi, dword [ebp + 0xc]
add esp, 0xc
push edi
lea edx, [esp + 0x18]
push str.__s_
push edx
call fcn.004045e0
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov eax, ebx
call fcn.00436fe0
test eax, eax
jne 0x436f0c
push 2
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [esp + 0x18]
push str.__s_
push eax
call fcn.004045e0
mov ecx, dword [esp + 0x20]
add esp, 0xc
push esi
call fcn.004374e0
mov ecx, dword [ebp + 0x10]
add esp, 4
push esi
call fcn.004374e0
add esp, 4
push esi
mov ecx, 0x4a77b8
call fcn.004374e0
add esp, 4
jmp 0x436fa4
call fcn.00437090
cmp byte [eax], 0
mov dword [esp + 0x24], eax
jne 0x436f35
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp + 0x10]
push esi
call fcn.004374e0
add esp, 4
jmp 0x436fa4
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 8]
push 5
call fcn.00436900
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x436fa4
mov edi, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x1c]
push ecx
mov edx, edi
sub edx, ebx
push edx
push ebx
push esi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x10]
push esi
call fcn.004374e0
add esp, 4
push 0
mov ecx, ebx
sub ecx, edi
add ecx, dword [esp + 0x2c]
lea eax, [esp + 0x1c]
push eax
push ecx
push edi
push esi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call fcn.00402360
push ebx
call fcn.0045505b
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4374e0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4934e8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4bea30]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
xor eax, eax
test ecx, ecx
mov dword [esp + 8], eax
je 0x437578
push ecx
lea ecx, [esp + 8]
call fcn.00404740
push 2
push 0x4a19ec
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
call fcn.00409b30
mov eax, dword [esp + 4]
mov ecx, dword [eax - 0xc]
push 0
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x24]
add ecx, ecx
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x437574
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
add esp, 0x14
ret