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

Disassembly:
sub esp, 0x850
mov eax, dword [0x46420c]
push edi
mov edi, dword [esp + 0x858]
test edi, edi
mov dword [esp + 0x850], eax
mov dword [esp + 8], ecx
je 0x420940
mov eax, dword [esp + 0x85c]
test eax, eax
je 0x420940
push ebx
lea eax, [esp + 0x10]
push eax
push 1
push 0x41fb50
push 0x41fb40
push 0x41fb30
push 0x41fb20
push 0x41fb10
push 0x41fb00
push 0x41faf0
call sub.Cabinet.dll_FDICreate
mov ebx, eax
add esp, 0x24
test ebx, ebx
mov dword [esp + 8], ebx
jne 0x420739
pop ebx
pop edi
mov ecx, dword [esp + 0x84c]
call fcn.0042b3a1
add esp, 0x850
ret 0xc
push ebp
push esi
push edi
lea ecx, [esp + 0x144]
push 0x44fd08
push ecx
call fcn.0042b87a
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esp, 0xc
push 0
push 0
push 0x104
lea edx, [esp + 0x48]
push edx
push 0x104
lea eax, [esp + 0x154]
push eax
push 0
push 1
call ebp
push 0
lea ecx, [esp + 0x40]
push 0x8020
push ecx
call fcn.0042d774
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x4207b7
push ebx
call sub.Cabinet.dll_FDIDestroy
add esp, 4
xor eax, eax
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x84c]
call fcn.0042b3a1
add esp, 0x850
ret 0xc
lea edx, [esp + 0x24]
push edx
push esi
push ebx
call sub.Cabinet.dll_FDIIsCabinet
add esp, 0xc
test eax, eax
push esi
jne 0x4207db
call fcn.0042dda0
push ebx
call sub.Cabinet.dll_FDIDestroy
add esp, 8
jmp 0x42079c
call fcn.0042dda0
push 0x5c
push edi
call fcn.0042c306
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, eax
add esp, 0xc
test esi, esi
lea eax, [esp + 0x654]
jne 0x420818
push edi
push eax
call ebx
push 1
lea ecx, [esp + 0x34c]
push 0x44fd64
push ecx
call fcn.0042e1bd
jmp 0x42083f
lea edx, [esi + 2]
push edx
push eax
call ebx
sub esi, edi
sar esi, 1
lea ecx, [esi + 1]
push ecx
lea edx, [esp + 0x34c]
push edi
push edx
call fcn.0042e1bd
mov word [esp + esi*2 + 0x356], 0
mov eax, dword [esp + 0x874]
add esp, 0xc
push eax
push 0x4655a0
call ebx
mov eax, dword [esp + 0x86c]
test eax, eax
je 0x420864
push eax
push 0x465398
call ebx
push 0x4655a0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42087f
push eax
push 0x4655a0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esp + 0x654]
push ecx
lea edx, [esp + 0x144]
push 0x44fd08
push edx
call fcn.0042b87a
add esp, 0xc
push 0
push 0
push 0x104
lea eax, [esp + 0x48]
push eax
push 0x104
lea ecx, [esp + 0x154]
push ecx
push 0
push 1
call ebp
lea edx, [esp + 0x348]
push edx
lea eax, [esp + 0x144]
push 0x44fd08
push eax
call fcn.0042b87a
add esp, 0xc
push 0
push 0
push 0x104
lea ecx, [esp + 0x55c]
push ecx
push 0x104
lea edx, [esp + 0x154]
push edx
push 0
push 1
call ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
mov esi, dword [esp + 0x10]
push ecx
push 0
push 0x41fbc0
push 0
lea edx, [esp + 0x560]
push edx
lea eax, [esp + 0x50]
push eax
push esi
call sub.Cabinet.dll_FDICopy
add esp, 0x1c
cmp eax, 1
push esi
jne 0x420794
call sub.Cabinet.dll_FDIDestroy
add esp, 4
jmp 0x42079e
mov ecx, dword [esp + 0x850]
xor eax, eax
pop edi
call fcn.0042b3a1
add esp, 0x850
ret 0xc
Function at 0x420c40
Capabilities:
Delete directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x46420c]
push esi
push edi
mov dword [esp + 0x21c], eax
mov esi, ecx
xor eax, eax
mov word [esp + 0x10], 0
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
test eax, eax
push 0
je 0x420c84
push 0x17
lea eax, [esp + 0x18]
push eax
jmp 0x420c8b
push 2
lea ecx, [esp + 0x18]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x420cab
mov ecx, dword [esp + 0x21c]
call fcn.0042b3a1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
lea edx, [esp + 0x10]
push 0x453880
push edx
call fcn.0042be5b
lea eax, [esp + 0x18]
push 0x45414c
push eax
call fcn.0042be5b
add esp, 0xc
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call fcn.004028f0
mov ecx, esi
call fcn.00420970
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x21c]
mov eax, 1
call fcn.0042b3a1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x420d10
Capabilities:
Delete directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x46420c]
push esi
push edi
mov dword [esp + 0x21c], eax
mov esi, ecx
xor eax, eax
mov word [esp + 0x10], 0
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
test eax, eax
push 0
je 0x420d54
push 0x17
lea eax, [esp + 0x18]
push eax
jmp 0x420d5b
push 2
lea ecx, [esp + 0x18]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x420d7b
mov ecx, dword [esp + 0x21c]
call fcn.0042b3a1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
lea edx, [esp + 0x10]
push 0x453880
push edx
call fcn.0042be5b
lea eax, [esp + 0x18]
push 0x454158
push eax
call fcn.0042be5b
add esp, 0xc
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call fcn.004028f0
mov ecx, esi
call fcn.00420970
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x21c]
mov eax, 1
call fcn.0042b3a1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x421013
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 0x400
xor ebx, ebx
push ebx
mov esi, 0x4657b0
push esi
call fcn.0042e200
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x421093
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 4], ebx
push dword [ebp - 8]
mov dword [ebp - 0xc], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42108a
cmp dword [ebp - 4], 1
je 0x42108a
cmp dword [ebp - 4], 2
je 0x42108a
cmp dword [ebp - 4], 7
je 0x42108a
mov byte [0x4657b0], bl
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4210bd
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov byte [ebp - 1], bl
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x42117f
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 0x14]
push 1
push ebx
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x421166
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 0x10], ebx
push dword [ebp - 8]
mov dword [ebp - 0x14], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42115a
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
neg eax
sbb al, al
inc al
mov byte [ebp - 1], al
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp dword [ebp - 0xc], 1
jne 0x421176
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop ebx
leave
ret

Function at 0x4220e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4220f5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x422107
xor eax, eax
jmp 0x422139
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x42212b
cmp esi, eax
jae 0x422103
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x42211d
cmp esi, eax
jae 0x422103
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x422e0f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x422e62
call fcn.00448bdd
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
je 0x422e62
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x422e58
xor eax, eax
jmp 0x422f7b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x422e92
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x422e92
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x422f78
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x422ebf
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00423af9
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x422f78
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x422f08
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x422f08
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x422f02
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00423af9
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x422f68
and dword [ebp + 0xc], 0
jmp 0x422f68
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x422f68
push 0xc
call fcn.00443dc7
mov esi, eax
test esi, esi
pop ecx
je 0x422f4a
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x422f4c
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x422f63
push dword [ebp - 8]
call fcn.0043eb34
jmp 0x422f68
call fcn.0043eb0b
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x422ecd
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x42b19c
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4575d0
call fcn.0042f270
mov edi, 0x94
mov eax, edi
call fcn.0042e180
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x467dfc], ecx
mov eax, dword [esi + 4]
mov dword [0x467e08], eax
mov edx, dword [esi + 8]
mov dword [0x467e0c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x467e00], esi
cmp ecx, 2
je 0x42b1fc
or esi, 0x8000
mov dword [0x467e00], esi
shl eax, 8
add eax, edx
mov dword [0x467e04], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x42b237
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42b237
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x42b24f
cmp eax, 0x20b
je 0x42b23c
mov dword [ebp - 0x1c], esi
jmp 0x42b263
cmp dword [ecx + 0x84], 0xe
jbe 0x42b237
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x42b25d
cmp dword [ecx + 0x74], 0xe
jbe 0x42b237
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00430596
pop ecx
test eax, eax
jne 0x42b277
push 0x1c
call fcn.0042b178
pop ecx
call fcn.0043048d
test eax, eax
jne 0x42b288
push 0x10
call fcn.0042b178
pop ecx
call fcn.004301e5
mov dword [ebp - 4], esi
call fcn.0042ffe7
test eax, eax
jge 0x42b2a1
push 0x1b
call fcn.0042b153
pop ecx
call fcn.0042ff48
mov dword [0x4698f0], eax
call fcn.0042fdde
mov dword [0x467dec], eax
call fcn.0042fd48
test eax, eax
jge 0x42b2c6
push 8
call fcn.0042b153
pop ecx
call fcn.0042fb15
test eax, eax
jge 0x42b2d7
push 9
call fcn.0042b153
pop ecx
push 1
call fcn.0042ee29
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x42b2ed
push eax
call fcn.0042b153
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.0042facf
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x42b30e
movzx eax, word [ebp - 0x40]
jmp 0x42b311
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0043e178
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x42b32f
push edi
call fcn.0042ef56
call fcn.0042ef78
jmp 0x42b361
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0042f2ab
ret
Function at 0x42cf8c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x42cfa9
call fcn.0042f3dc
mov dword [eax], 0x16
xor eax, eax
jmp 0x42d013
push esi
push 0x8c
push 1
call fcn.0042f700
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x42cffe
push esi
call fcn.00430293
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x42cfdc
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x42cef7
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x42d012
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0042c5bd
test ebx, ebx
pop ecx
je 0x42d010
push ebx
call fcn.0042f3ee
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x42d81e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x42d9f2
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4697e0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x42d9f2
test cl, 0x48
je 0x42d889
cmp byte [eax + 5], 0xa
je 0x42d889
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42d8db
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x42d8c3
call fcn.0042f3dc
mov dword [eax], 9
call fcn.0042f3e5
mov dword [eax], esi
jmp 0x42d8d3
cmp eax, 0x6d
je 0x42d9f2
push eax
call fcn.0042f3ee
pop ecx
or eax, 0xffffffff
jmp 0x42d9f4
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x42d9ed
test eax, eax
je 0x42d902
cmp byte [ebx], 0xa
jne 0x42d902
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x42d90b
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x42d9e7
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x42d9d7
cmp al, 0xd
je 0x42d93d
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x42d9c9
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x42d957
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x42d952
add dword [ebp + 0x10], 2
jmp 0x42d9ab
mov dword [ebp + 0x10], eax
jmp 0x42d9c5
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42d97f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42d9c5
cmp dword [ebp - 0xc], 0
je 0x42d9c5
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x42d9a0
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x42d9ab
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x42d9c8
cmp ebx, dword [ebp + 0xc]
jne 0x42d9b0
cmp byte [ebp - 1], 0xa
jne 0x42d9b0
mov byte [ebx], 0xa
jmp 0x42d9c8
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042de3b
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x42d9c9
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x42d921
jmp 0x42d9e7
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x42d9e7
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x42d9f4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42daa4
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x46420c]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x42dad5
xor eax, eax
jmp 0x42dc5e
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4697e0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x42db11
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.004363f8
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x42dbec
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x42dc2a
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x42db75
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x42db66
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x42db46
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42dbb5
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x42dbbe
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x42db37
jmp 0x42dbc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x42dc59
cmp dword [ebp - 0x6c], edi
je 0x42dc2a
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x42dc1f
call fcn.0042f3dc
mov dword [eax], 9
call fcn.0042f3e5
mov dword [eax], esi
jmp 0x42dc54
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42dc14
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x42dbc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x42dbc0
push dword [ebp - 0x6c]
call fcn.0042f3ee
pop ecx
jmp 0x42dc54
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x42dc42
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x42dc42
xor eax, eax
jmp 0x42dc5c
call fcn.0042f3dc
mov dword [eax], 0x1c
call fcn.0042f3e5
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x42dc5c
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0042b3a1
add ebp, 0x3a0
leave
ret
Function at 0x42ee93
Capabilities:
Terminate process

Disassembly:
push 8
push 0x457838
call fcn.0042f270
push 8
call fcn.00432aeb
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x467e3c], esi
jne 0x42eec7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x467e38], esi
mov al, byte [ebp + 0x10]
mov byte [0x467e34], al
cmp dword [ebp + 0xc], edi
jne 0x42ef11
cmp dword [0x4698e8], edi
je 0x42ef01
mov eax, dword [0x4698e4]
sub eax, 4
mov dword [0x4698e4], eax
cmp eax, dword [0x4698e8]
jb 0x42ef01
mov eax, dword [eax]
cmp eax, edi
je 0x42eee2
call eax
jmp 0x42eee2
push 0x4630a8
mov eax, 0x4630a0
call fcn.0042ee11
pop ecx
push 0x4630b4
mov eax, 0x4630ac
call fcn.0042ee11
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x42ef42
cmp dword [ebp + 0x10], edi
jne 0x42ef50
mov dword [0x467e3c], esi
push dword [ebp + 8]
call fcn.0042edcf
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x42ef4f
push 8
call fcn.00432a36
pop ecx
ret
call fcn.0042f2ab
ret

Function at 0x42f18a
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0042e180
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42f225
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x467dfc]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x42f225
cmp eax, 1
je 0x42f246
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42f225
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x42f1f2
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x42f221
xor eax, eax
inc eax
jmp 0x42f265
cmp edi, eax
jae 0x42f229
xor eax, eax
jmp 0x42f265
cmp eax, esi
jae 0x42f230
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x467dfc]
jmp 0x42f249
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret