joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ee20
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x40ee65
cmp byte [esi + 1], 0
je 0x40ee6d
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x40ee82
cmp byte [esi + 1], 0
je 0x40ee74
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x40ee8b
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x40ee3e
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x40ee8b
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
cmp ebp, edi
mov dword [esp + 0xc], edi
jae 0x40ee9f
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.0042f8c2
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40eebd
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
cmp edi, eax
mov dword [esp + 0x18], 0xffffffff
jbe 0x40efd3
jmp 0x40eee0
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
cmp eax, edi
mov dword [esp + 0x14], edi
ja 0x40eef1
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
cmp ebp, 0x404
mov dword [esp + 0x20], eax
jbe 0x40ef0a
mov ebp, 0x404
cmp byte [esi], 0
je 0x40ef2f
cmp byte [esi + 1], 0
je 0x40efd3
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40ef32
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x40ef5a
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40ef54
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x40ef80
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x40ef6b
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.004370a0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x40efd3
lea eax, [ebp - 3]
test eax, eax
jl 0x40efbe
sub eax, 1
cmp byte [eax + ebx], 0x50
jne 0x40efae
cmp byte [eax + ebx + 1], 0x4b
jne 0x40efae
cmp byte [eax + ebx + 2], 5
jne 0x40efae
cmp byte [eax + ebx + 3], 6
je 0x40efb4
test eax, eax
jge 0x40ef90
jmp 0x40efbe
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x40efd3
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x40eed4
push ebx
call fcn.0042f7e5
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x40f900
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x40f918
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x40f90d
cmp dword [edi + 0x7c], ebx
je 0x40f927
call fcn.0040fcf0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0040f670
add esp, 0xc
test eax, eax
je 0x40f94d
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push ebp
push 0x84
call fcn.0042f8c2
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x40f98f
push 0x4000
call fcn.0042f8c2
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add esp, 4
cmp eax, ebx
mov dword [ebp], eax
mov dword [ebp + 0x44], ecx
mov dword [ebp + 0x48], edx
mov dword [ebp + 0x4c], ebx
jne 0x40f99b
push ebp
call fcn.0042f7e5
add esp, 4
pop ebp
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [ebp + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [ebp + 0x54], ecx
mov dword [ebp + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [ebp + 0x64], edx
mov ecx, dword [edi]
mov dword [ebp + 0x60], ecx
mov edx, dword [edi + 0xc]
push esi
mov dword [ebp + 0x68], edx
cmp eax, ebx
mov dword [ebp + 0x18], ebx
jne 0x40f9e4
lea esi, [ebp + 4]
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
call fcn.0040e760
test eax, eax
jne 0x40f9e4
mov dword [ebp + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [ebp + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [ebp + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [ebp + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x40fa0e
mov cl, byte [edi + 0x39]
mov byte [ebp + 0x80], cl
jmp 0x40fa17
mov dl, byte [edi + 0x3f]
mov byte [ebp + 0x80], dl
mov al, byte [ebp + 0x6c]
mov esi, dword [esp + 0x20]
neg al
lea edx, [ebp + 0x70]
mov dword [edx], 0x12345678
mov dword [ebp + 0x74], 0x23456789
mov dword [ebp + 0x78], 0x34567890
sbb eax, eax
and eax, 0xc
cmp esi, ebx
mov dword [ebp + 0x7c], eax
je 0x40fa53
mov cl, byte [esi]
cmp cl, bl
je 0x40fa53
call fcn.0040e4a0
add esi, 1
jne 0x40fa43
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [ebp + 0x3c], eax
mov dword [ebp + 8], ebx
pop esi
mov dword [edi + 0x7c], ebp
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x40fde0
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [esi], 0
push edi
jne 0x40fe81
cmp dword [esi + 4], 0xffffffff
jne 0x40fe81
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fe10
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x40fe49
cmp ax, 0x2f
je 0x40fe49
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40fe36
mov eax, dword [0x457ad4]
mov dword [edi], eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
call fcn.0040ebc0
add esp, 4
test eax, eax
jne 0x40fe67
mov eax, dword [esp + 0xc]
pop edi
pop ecx
ret 4
call fcn.0040eff0
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ecx
ret 4
mov eax, 0x1000000
pop edi
pop ecx
ret 4

Function at 0x410460
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x469720]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, dword [esp + 0x420]
push edi
mov edi, dword [esp + 0x420]
test edi, edi
je 0x41049d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41049d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x41057a
mov ecx, ebx
mov edx, ebx
movzx eax, ax
cmp ax, 0x2f
je 0x4104bc
cmp ax, 0x5c
jne 0x4104be
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x4104b0
cmp ecx, ebx
push esi
je 0x410501
sub ecx, ebx
sar ecx, 1
add ecx, ecx
mov esi, ecx
push esi
lea eax, [esp + 0x218]
push ebx
push eax
call fcn.004370a0
lea ecx, [esp + 0x220]
push ecx
push edi
mov word [esp + esi + 0x228], 0
call fcn.00410460
add esp, 0x14
test edi, edi
mov word [esp + 0xc], 0
je 0x410523
lea edx, [esp + 0xc]
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x410514
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410527
lea edi, [esp + 0xc]
sub eax, edx
add edi, 0xfffffffe
jmp 0x410540
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x410540
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0xc]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
pop esi
jne 0x41057a
push 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x418]
pop edi
pop ebx
xor ecx, esp
call fcn.0042efdc
add esp, 0x414
ret
Function at 0x411070
Capabilities:
Encode data using xor
Hash data with crc32
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [esp + 0x14]
mov eax, ebx
je 0x411150
mov eax, dword [esi + 0x3c]
push ebp
xor ebp, ebp
cmp eax, ebp
je 0x4110a4
cmp dword [esi + 0x40], edi
jae 0x4110a4
push eax
call fcn.0041218b
add esp, 4
mov dword [esi + 0x3c], ebp
cmp dword [esi + 0x3c], ebp
jne 0x4110bb
lea eax, [edi + edi]
push eax
call fcn.00412160
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x3c]
push edi
push ebx
push ecx
call fcn.004370a0
add esp, 0xc
cmp edi, ebp
jbe 0x41114c
mov edx, dword [esi + 0x3c]
mov bl, byte [edx + ebp]
mov edi, dword [esi + 0x30]
mov eax, dword [esi + 0x38]
movzx ecx, bl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x458720]
shr edi, 8
xor ecx, edi
mov dword [esi + 0x30], ecx
movzx ecx, cl
add ecx, dword [esi + 0x34]
mov edx, eax
imul ecx, ecx, 0x8088405
add ecx, 1
mov dword [esi + 0x34], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x458720]
and edx, 0xfffd
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x3c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, bl
mov byte [ecx + ebp], al
add ebp, 1
cmp ebp, dword [esp + 0x18]
jb 0x4110d1
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x3c]
pop ebp
mov edx, dword [esi + 0x20]
test edx, edx
je 0x411189
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x411171
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
ret 8
push edi
push eax
add ecx, edx
push ecx
call fcn.004370a0
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4111aa
push 0
lea edx, [esp + 0x18]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
ret 8
Function at 0x413ac6
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x413aef
call fcn.00418430
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
mov dword [esi + 8], eax
jne 0x413b12
push eax
push dword [esi + 4]
call fcn.00413a51
push esi
push eax
mov ecx, 0x46b2fc
call fcn.00413700
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x414357
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x44d4e0
call fcn.004323c3
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00414319
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00401990
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
mov dword [esi + 4], eax
jne 0x4143bd
push eax
push dword [esi + 8]
call fcn.00413a51
push dword [esi + 0xc]
mov ecx, 0x46b2fc
push eax
call fcn.00413700
mov eax, esi
call fcn.0043249b
ret 0x18
Function at 0x4161d5
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x1f4]
sub esp, 0x274
mov eax, dword [0x469720]
xor eax, ebp
mov dword [ebp + 0x1f0], eax
cmp dword [ebp + 0x200], 0x800
mov eax, dword [ebp + 0x1fc]
push esi
mov dword [ebp - 0x40], eax
mov esi, ecx
lea eax, [ebp + 0x1e8]
jne 0x416273
push 0x45224c
push 4
push eax
call fcn.00431cba
push eax
call fcn.00401550
add esp, 0x10
push ebx
push edi
call fcn.00432b6e
mov edi, dword [eax]
call fcn.00432b6e
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00432836
add esp, 0x18
mov dword [ebp - 0x40], eax
call fcn.00432b6e
cmp dword [eax], ebx
je 0x41628a
call fcn.00432b6e
push dword [eax]
call fcn.0041304d
pop ecx
jmp 0x416291
push 4
push eax
push 3
push dword [ebp + 0x200]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x416224
jmp 0x416303
call fcn.00432b6e
mov dword [eax], edi
cmp dword [ebp - 0x40], 0xffffffff
je 0x4162ff
cmp dword [ebp - 0x40], esi
jae 0x4162ff
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.004327a0
add esp, 0xc
push 0x451fac
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x4162f1
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4162f1
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x4162f1
push ebx
push ebx
push esi
jmp 0x4162f7
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x416301
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x1f0]
xor ecx, ebp
pop esi
call fcn.0042efdc
add ebp, 0x1f4
leave
ret
Function at 0x41717a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x4171c0
call fcn.00418430
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4171c0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x417203
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x4171ec
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4171ec
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x417200
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x41e341
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x41e384
call fcn.00418430
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41e384
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41e39f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0041defb
test ebx, ebx
mov esi, eax
je 0x41e39d
test edi, edi
je 0x41e39d
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x422649
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x422652
xor eax, eax
jmp 0x4226bb
cmp dword [esp + 8], 0
jne 0x42265e
call fcn.00413193
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.00431776
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x422699
push dword [esi + 0x10]
call fcn.0043184f
test eax, eax
pop ecx
jne 0x422699
mov esi, dword [esi + 0xc]
call fcn.00432b81
push esi
push dword [eax]
push 1
call fcn.004209d6
push dword [esi + 0x10]
call fcn.0043187e
test eax, eax
pop ecx
je 0x4226b8
push dword [esi + 0x10]
call fcn.0043526d
push eax
call fcn.00401550
pop ecx
pop ecx
jmp 0x422687
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x4226c4
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x4226ce
call fcn.00413193
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.00431a0c
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x4226fb
mov esi, dword [esi + 0xc]
call fcn.00432b81
push esi
push dword [eax]
push 1
call fcn.004209d6
pop esi
ret 8

Function at 0x42efdc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x469720]
jne 0x42efe6
repz ret
jmp fcn.00436f99
Function at 0x4314da
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x431517
cmp dword [ebp + 0x14], edi
je 0x431517
cmp ecx, edi
jne 0x43151e
call fcn.00432b6e
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0042f7b1
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x431532
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x431553
cmp ebx, 0xffffffff
je 0x431542
push ebx
push edi
push ecx
call fcn.004327a0
add esp, 0xc
cmp esi, edi
je 0x4314ff
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4314ff
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x43156f
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x431576
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x431667
test word [esi + 0xc], 0x10c
je 0x4315ca
mov eax, dword [esi + 4]
test eax, eax
je 0x4315ca
jl 0x4316c8
cmp ebx, eax
mov edi, ebx
jb 0x43159b
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x43166f
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0042efeb
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x43165f
cmp ebx, dword [ebp - 0xc]
jb 0x431637
cmp dword [ebp - 0xc], 0
je 0x4315f4
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x4315e9
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4315f0
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4315ff
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4315ff
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x43169b
push eax
push dword [ebp - 8]
push esi
call fcn.004350ba
pop ecx
push eax
call fcn.0043d3e5
add esp, 0xc
test eax, eax
je 0x4316da
cmp eax, 0xffffffff
je 0x4316c8
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x43165f
push esi
call fcn.0043debf
cmp eax, 0xffffffff
pop ecx
je 0x4316cc
cmp dword [ebp - 4], 0
je 0x43169b
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x43157e
mov eax, dword [ebp + 0x14]
jmp 0x431519
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x431686
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004327a0
add esp, 0xc
call fcn.00432b6e
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x43150f
cmp dword [ebp + 0xc], 0xffffffff
je 0x4316b1
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004327a0
add esp, 0xc
call fcn.00432b6e
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x43150f
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x431519
or dword [esi + 0xc], 0x10
jmp 0x4316cc
Function at 0x435d0c
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4698b0]
je 0x435d27
inc edi
cmp edi, 0x17
jb 0x435d18
cmp edi, 0x17
jae 0x435ea7
push ebp
push 3
call fcn.00442daa
cmp eax, 1
pop ecx
je 0x435e73
push 3
call fcn.00442daa
test eax, eax
pop ecx
jne 0x435d5b
cmp dword [0x4696f8], 1
je 0x435e73
cmp ebx, 0xfc
je 0x435ea6
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x46d2a8
push ebp
call fcn.00438928
add esp, 0xc
test eax, eax
je 0x435d91
push esi
push esi
push esi
push esi
push esi
call fcn.0042f6b5
add esp, 0x14
push 0x104
mov esi, 0x46d2c1
push esi
push 0
mov byte [0x46d3c5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x435dd5
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00438928
add esp, 0xc
test eax, eax
je 0x435dd5
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042f6b5
add esp, 0x14
push esi
call fcn.00438990
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x435e1a
push esi
call fcn.00438990
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x46d5bc
push 0x4552c4
sub ecx, eax
push ecx
push eax
call fcn.00442cf7
add esp, 0x14
test eax, eax
je 0x435e1a
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0042f6b5
add esp, 0x14
jmp 0x435e1c
xor esi, esi
push 0x4552c0
push ebx
push ebp
call fcn.00442c86
add esp, 0xc
test eax, eax
je 0x435e3c
push esi
push esi
push esi
push esi
push esi
call fcn.0042f6b5
add esp, 0x14
push dword [edi*8 + 0x4698b4]
push ebx
push ebp
call fcn.00442c86
add esp, 0xc
test eax, eax
je 0x435e5e
push esi
push esi
push esi
push esi
push esi
call fcn.0042f6b5
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00442ac9
add esp, 0xc
jmp 0x435ea6
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x435ea6
cmp ebp, 0xffffffff
je 0x435ea6
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4698b4]
push dword [esi]
call fcn.00438990
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x442ac9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004368d1
xor ebx, ebx
cmp dword [0x46ddd4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x442b9f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x442c7f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x442c7f
push eax
call fcn.00436863
mov dword [esp], 0x4558d8
push edi
mov dword [0x46ddd4], eax
call esi
push eax
call fcn.00436863
mov dword [esp], 0x4558c4
push edi
mov dword [0x46ddd8], eax
call esi
push eax
call fcn.00436863
mov dword [0x46dddc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004300b1
test eax, eax
pop ecx
pop ecx
je 0x442b6d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042f6b5
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x442b9f
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00436863
cmp eax, ebx
pop ecx
mov dword [0x46dde4], eax
je 0x442b9f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00436863
pop ecx
mov dword [0x46dde0], eax
mov eax, dword [0x46dde0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x442c24
cmp dword [0x46dde4], ecx
je 0x442c24
push eax
call fcn.004368da
push dword [0x46dde4]
mov esi, eax
call fcn.004368da
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x442c24
cmp edi, ebx
je 0x442c24
call esi
cmp eax, ebx
je 0x442bf1
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x442bf1
test byte [ebp - 0x18], 1
jne 0x442c24
lea eax, [ebp - 0x10]
push eax
call fcn.004300e8
test eax, eax
pop ecx
je 0x442c0c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042f6b5
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x442c1b
or dword [ebp + 0x10], 0x200000
jmp 0x442c5f
or dword [ebp + 0x10], 0x40000
jmp 0x442c5f
mov eax, dword [0x46ddd8]
cmp eax, dword [ebp - 8]
je 0x442c5f
push eax
call fcn.004368da
cmp eax, ebx
pop ecx
je 0x442c5f
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x442c5f
mov eax, dword [0x46dddc]
cmp eax, dword [ebp - 8]
je 0x442c5f
push eax
call fcn.004368da
cmp eax, ebx
pop ecx
je 0x442c5f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46ddd4]
call fcn.004368da
cmp eax, ebx
pop ecx
je 0x442c7f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x442c81
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret