joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c650
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a300
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x592174]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x43c689
mov ecx, dword [edi]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x43c693
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push ecx
push eax
call ebx
test eax, eax
je 0x43c6aa
mov al, 1
jmp 0x43c7f1
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x41], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x40]
mov ecx, esi
call fcn.0043d150
movzx ecx, byte [ebp - 0x41]
test al, al
mov edx, 1
mov dword [ebp - 0x18], 0
cmovne ecx, edx
mov dword [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], dl
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.0043d150
test al, al
jne 0x43c726
cmp byte [ebp - 0x48], al
je 0x43c74a
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push 0
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call ebx
test eax, eax
je 0x43c74a
mov bl, 1
jmp 0x43c74c
xor bl, bl
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x43c78a
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43c780
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43c80d
push edx
push ecx
call fcn.0050b342
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x43c7db
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43c7d1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43c812
push edx
push ecx
call fcn.0050b342
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov al, bl
mov dword [ebp - 0x2c], 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050b067
mov esp, ebp
pop ebp
ret
call fcn.0050f749
call fcn.0050f749
int3
Function at 0x43cb30
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x592174]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
lea eax, [esp + 4]
push esi
push edi
push 0x20c
push 0
push eax
mov edi, edx
mov esi, ecx
call fcn.0050d580
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x43cb6e
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x43cb76
mov esi, dword [esi]
lea eax, [esp + 0xc]
push eax
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x43cbd6
xor eax, eax
lea edx, [esp + 0xc]
mov word [esp + 0x216], ax
lea esi, [edx + 2]
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x43cba0
sub edx, esi
lea eax, [esp + 0xc]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.00418820
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0050b067
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0050b067
add esp, 0x210
ret

Function at 0x43ea90
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x592174]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x43eaf5
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43ead0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x43eaf5
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0050b067
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.0050b067
add esp, 8
ret 4
Function at 0x43fcf0
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53aaa1
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x592174]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.DL::RCSimpleDownloadHandler.0
mov dword [edi + 4], vtable.DL::RCSimpleDownloadHandler.1.0
mov dword [ebp - 4], 7
mov dword [edi + 0x98], 0
mov byte [ebp - 4], 6
or ebx, 0xffffffff
mov esi, dword [edi + 0xf8]
test esi, esi
je 0x43fd6b
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x43fd6b
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x43fd6b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 5
mov ecx, dword [edi + 0xec]
test ecx, ecx
je 0x43fd86
lock xadd dword [ecx + 8], ebx
dec ebx
jne 0x43fd86
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, dword [edi + 0xe4]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
test eax, eax
je 0x43fdb7
push eax
call ebx
push 0x18
push dword [edi + 0xe4]
call fcn.0050b342
add esp, 8
mov dword [edi + 0xe4], 0
mov byte [ebp - 4], 3
lea esi, [edi + 0xc0]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 8
mov eax, dword [esi]
test eax, eax
je 0x43fddb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov byte [ebp - 4], 3
lea ecx, [esi + 8]
call fcn.004185b0
mov byte [ebp - 4], 2
mov eax, dword [edi + 0xac]
test eax, eax
je 0x43fe12
push eax
call ebx
push 0x18
push dword [edi + 0xac]
call fcn.0050b342
add esp, 8
mov dword [edi + 0xac], 0
mov byte [ebp - 4], 1
mov ecx, dword [edi + 0xa0]
test ecx, ecx
je 0x43fe8d
mov edx, dword [edi + 0xa4]
push ecx
call fcn.0042d120
mov eax, dword [edi + 0xa8]
add esp, 4
mov ecx, dword [edi + 0xa0]
sub eax, ecx
sar eax, 3
lea edx, [eax*8]
cmp edx, 0x1000
jb 0x43fe65
mov esi, dword [ecx - 4]
add edx, 0x23
sub ecx, esi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x43ff0c
mov ecx, esi
push edx
push ecx
call fcn.0050b342
add esp, 8
mov dword [edi + 0xa0], 0
mov dword [edi + 0xa4], 0
mov dword [edi + 0xa8], 0
mov byte [ebp - 4], 0
lea esi, [edi + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0xc
lea ecx, [esi + 0x70]
call fcn.004185b0
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x48]
call fcn.004185b0
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x30]
call fcn.004185b0
mov byte [ebp - 4], 9
lea ecx, [esi + 0x18]
call fcn.004185b0
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.004185b0
mov dword [ebp - 4], 0xe
mov dword [edi + 4], vtable.RC::RCRefCounted.0
mov dword [ebp - 4], 0xffffffff
mov dword [edi], vtable.DL::ISimpleDownloadHandler.0
mov dword [ebp - 4], 0xffffffff
mov dword [edi], vtable.RC::IRefCount.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0050f749
int3
Function at 0x442720
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53afc8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x592174]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
push 2
push 0xffffffffffffffff
push 0xffff8000
movlpd qword [ebp - 0x3c], xmm0
call fcn.00431ef0
test al, al
jne 0x442780
mov eax, 1
jmp 0x4428fd
push 0x10000
call fcn.0050b6cf
mov ebx, eax
mov dword [ebp - 0x18], 0
add esp, 4
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
push 0x10000
push 0
push ebx
call fcn.0050d580
mov eax, dword [esi]
add esp, 0xc
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x4428d6
test ebx, ebx
je 0x4428d6
cmp dword [eax], 0xffffffff
je 0x4428d6
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0x8000
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4428d6
mov esi, dword [ebp - 0x20]
mov ecx, 0x8000
xor ebx, ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], ecx
add esi, ecx
nop word [eax + eax]
cmp byte [edi + 0x9c], 0
jne 0x4428cc
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push edx
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push edx
push ecx
mov ecx, dword [ebp - 0x34]
lea eax, [esi + ebx]
push eax
call fcn.0045b660
test al, al
je 0x4428bf
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x442872
mov eax, dword [edi + 0xc0]
test eax, eax
je 0x442861
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [edi + 0x9c], 0
jne 0x4428cc
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
jmp 0x44287c
add ebx, eax
cmp ebx, 0x8000
je 0x44288c
cmp dword [ebp - 0x28], 0xf
ja 0x4428b5
mov ecx, dword [ebp - 0x2c]
sub ecx, eax
mov dword [ebp - 0x2c], ecx
jne 0x442810
mov ebx, dword [ebp - 0x20]
mov edx, 0x7ffc
mov ecx, ebx
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x4428ae
add ecx, 4
add esi, 4
sub edx, 4
jae 0x442896
mov esi, 4
jmp 0x4428e7
mov esi, 5
jmp 0x4428e7
mov ebx, dword [ebp - 0x20]
mov esi, 3
jmp 0x4428e7
mov eax, dword [ebp - 0x30]
mov esi, 3
mov ebx, dword [ebp - 0x20]
jmp 0x4428e1
mov ebx, dword [ebp - 0x20]
mov esi, 2
jmp 0x4428e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 1
mov dword [edi + 0xb0], eax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x4428fb
push ebx
call fcn.0050b6d8
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0050b067
mov esp, ebp
pop ebp
ret 0xc
Function at 0x450280
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53cba8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x592174]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea eax, [edi + 4]
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov dword [ebp - 4], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], 7
mov word [eax + 0x18], cx
mov byte [ebp - 4], 1
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], 7
mov word [eax + 0x30], cx
mov byte [ebp - 4], 2
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], 7
mov word [eax + 0x48], cx
mov byte [ebp - 4], 3
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], 7
mov word [eax + 0x60], cx
mov byte [ebp - 4], 4
mov dword [eax + 0x88], ecx
mov dword [eax + 0x8c], 7
mov word [eax + 0x78], cx
mov byte [ebp - 4], 5
mov dword [eax + 0x90], ecx
mov dword [eax + 0x94], ecx
mov dword [eax + 0x98], ecx
mov dword [ebp - 4], 7
mov dword [edi + 0xa0], ecx
mov dword [edi + 0xa4], ecx
mov byte [ebp - 4], 8
mov dword [edi + 0xa8], ecx
mov dword [edi + 0xac], ecx
mov byte [ebp - 4], 9
lea ecx, [edi + 0xb0]
call fcn.004271c0
mov byte [ebp - 4], 0xa
push 0
call fcn.00512364
push eax
call fcn.005123c7
push 0x20
call fcn.0050b078
mov esi, eax
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0xb
push 0x18
call fcn.0050b078
add esp, 0x10
mov dword [esi], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 0xc
xor eax, eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 7
mov word [esi + 4], ax
mov byte [ebp - 4], 0xa
mov dword [edi + 0xc0], esi
mov dword [esi + 0x1c], eax
mov byte [ebp - 4], 0xe
mov dword [edi + 0xdc], eax
mov dword [edi + 0xe0], 7
mov word [edi + 0xcc], ax
mov byte [ebp - 4], 0xf
mov dword [edi + 0xf4], eax
mov dword [edi + 0xf8], 7
mov word [edi + 0xe4], ax
mov byte [ebp - 4], 0x10
lea ecx, [edi + 0x100]
call fcn.00450ca0
mov byte [ebp - 4], 0x11
xor eax, eax
mov dword [edi + 0x1fc], 0
mov dword [edi + 0x200], 7
mov word [edi + 0x1ec], ax
mov byte [ebp - 4], 0x12
mov dword [edi + 0x214], eax
mov dword [edi + 0x218], 7
mov word [edi + 0x204], ax
mov byte [ebp - 4], 0x13
mov dword [edi + 0xc8], eax
mov dword [edi + 0xc4], eax
mov byte [edi], al
mov word [edi + 0x1e8], ax
mov dword [edi + 0x178], eax
mov dword [edi + 0x17c], eax
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45bbc0
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53e5a7
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x592174]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0x18
mov byte [edi], 0
call fcn.0050b078
add esp, 4
mov dword [edi + 4], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0
lea esi, [edi + 8]
push 0
mov dword [ebp - 0x14], esi
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0045da60
mov dword [esi], eax
mov byte [ebp - 4], 3
lea esi, [edi + 0x10]
push 0
mov dword [ebp - 0x14], esi
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0045da60
mov dword [esi], eax
mov byte [ebp - 4], 6
xor eax, eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 7
mov word [edi + 0x20], ax
mov byte [ebp - 4], 7
lea ecx, [edi + 0x38]
call fcn.00458280
mov byte [ebp - 4], 8
lea eax, [edi + 0xb8]
mov dword [ebp - 0x14], eax
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 9
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov byte [eax + 0x30], cl
mov byte [ebp - 4], 0xa
xor eax, eax
mov dword [edi + 0x100], ecx
mov dword [edi + 0x104], 7
mov word [edi + 0xf0], ax
mov byte [ebp - 4], 0xb
mov dword [edi + 0x118], eax
mov dword [edi + 0x11c], 0xf
mov byte [edi + 0x108], al
mov byte [ebp - 4], 0xc
mov dword [edi + 0x130], eax
mov dword [edi + 0x134], 0xf
mov byte [edi + 0x120], al
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4690d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x80
push esi
mov dword [esp + 4], 0x10d040e
xor esi, esi
mov dword [esp + 8], 0x80b0f02
mov dword [esp + 0xc], 0xc060a03
mov dword [esp + 0x10], 0x7000905
mov dword [esp + 0x14], 0xe08010f
mov dword [esp + 0x18], 0x4030b06
mov dword [esp + 0x1c], 0xd020709
mov dword [esp + 0x20], 0xa05000c
mov dword [esp + 0x24], 0xe09000a
mov dword [esp + 0x28], 0x50f0306
mov dword [esp + 0x2c], 0x70c0d01
mov dword [esp + 0x30], 0x802040b
mov dword [esp + 0x34], 0x30e0d07
mov dword [esp + 0x38], 0xa090600
mov dword [esp + 0x3c], 0x5080201
mov dword [esp + 0x40], 0xf040c0b
mov dword [esp + 0x44], 0x1040c02
mov dword [esp + 0x48], 0x60b0a07
mov dword [esp + 0x4c], 0xf030508
mov dword [esp + 0x50], 0x90e000d
mov dword [esp + 0x54], 0xf0a010c
mov dword [esp + 0x58], 0x8060209
mov dword [esp + 0x5c], 0x4030d00
mov dword [esp + 0x60], 0xb05070e
mov dword [esp + 0x64], 0xe020b04
mov dword [esp + 0x68], 0xd08000f
mov dword [esp + 0x6c], 0x7090c03
mov dword [esp + 0x70], 0x1060a05
mov dword [esp + 0x74], 0x408020d
mov dword [esp + 0x78], 0x10b0f06
mov dword [esp + 0x7c], 0xe03090a
mov dword [esp + 0x80], 0x70c0005
nop dword [eax]
mov ecx, esi
mov edx, esi
sar ecx, 4
and edx, 0xf
movzx eax, byte [esp + ecx + 4]
shl al, 4
or al, byte [esp + edx + 0x14]
mov byte [esi + 0x595bc0], al
movzx eax, byte [esp + ecx + 0x24]
shl al, 4
or al, byte [esp + edx + 0x34]
mov byte [esi + 0x5958c0], al
movzx eax, byte [esp + ecx + 0x44]
shl al, 4
or al, byte [esp + edx + 0x54]
mov byte [esi + 0x595ac0], al
movzx eax, byte [esp + ecx + 0x64]
shl al, 4
or al, byte [esp + edx + 0x74]
mov byte [esi + 0x5959c0], al
inc esi
cmp esi, 0x100
jl 0x4691e0
pop esi
add esp, 0x80
ret
Function at 0x4713e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537538
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x592174]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
push ecx
lea ecx, [ebp - 0x28]
call fcn.0041c4e0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.00417c50
add esp, 4
cmp dword [ebp - 0x18], 2
jbe 0x4714ec
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 8
cmovae eax, edx
cmp word [eax], 0x5c
jne 0x47145e
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
cmp word [eax + 2], 0x5c
jne 0x47145e
mov bl, 1
jmp 0x471555
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
cmp word [eax], 0x2f
jne 0x471481
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
cmp word [eax + 2], 0x2f
je 0x471553
push 0x5c
lea eax, [ebp - 0x28]
push 0x2f
push eax
call fcn.00417a40
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
add esp, 0xc
cmp ecx, 8
cmovae eax, edx
cmp word [eax + 2], 0x3a
jne 0x471553
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
cmp word [eax + 4], 0x5c
jne 0x471553
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
cmp word [eax], 0x61
jb 0x471553
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
cmp word [eax], 0x7a
ja 0x471553
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
jmp 0x47153c
jne 0x471553
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 8
cmovae eax, edx
cmp word [eax + 2], 0x3a
jne 0x471553
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
cmp word [eax], 0x61
jb 0x471553
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
cmp word [eax], 0x7a
ja 0x471553
push 1
push 0x5678b8
lea ecx, [ebp - 0x28]
call fcn.0041c690
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x471553
shr eax, 4
mov bl, 1
and al, 1
mov byte [esi], al
jmp 0x471555
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x471592
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x471588
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4715c3
push edx
push ecx
call fcn.0050b342
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov al, bl
mov dword [ebp - 0x14], 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050b067
mov esp, ebp
pop ebp
ret
call fcn.0050f749
int3
Function at 0x4744a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b788
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x592174]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
mov dword [esi + 0x10], eax
call fcn.00512364
mov ecx, dword [esi]
add esp, 4
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
test ecx, ecx
je 0x4745c4
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x34], edx
call fcn.0045d6d0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
jne 0x474548
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4745b4
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4745aa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4745e0
jmp 0x4745aa
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x80
push 4
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x47450b
test esi, esi
je 0x47450b
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 8
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x47450b
push edx
push ecx
call fcn.0050b342
add esp, 8
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050b067
mov esp, ebp
pop ebp
ret 4
call fcn.0050f749
int3
Function at 0x47ab40
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541e9d
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x592174]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0x15
lea ecx, [esi + 0x210]
call fcn.004185b0
mov byte [ebp - 4], 0x14
lea ecx, [esi + 0x1f8]
call fcn.004185b0
mov byte [ebp - 4], 0x13
lea ecx, [esi + 0x1e0]
call fcn.004185b0
mov byte [ebp - 4], 0x12
lea ecx, [esi + 0x1c8]
call fcn.004185b0
mov byte [ebp - 4], 0x11
lea ecx, [esi + 0x1b0]
call fcn.004185b0
mov byte [ebp - 4], 0x10
lea ecx, [esi + 0x198]
call fcn.004185b0
mov byte [ebp - 4], 0xf
lea ecx, [esi + 0x180]
call fcn.004185b0
mov byte [ebp - 4], 0xe
lea ecx, [esi + 0x168]
call fcn.004185b0
mov byte [ebp - 4], 0xd
lea ecx, [esi + 0x150]
call fcn.004185b0
mov byte [ebp - 4], 0xc
lea ecx, [esi + 0x138]
call fcn.004185b0
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x120]
call fcn.004185b0
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x108]
call fcn.004185b0
mov byte [ebp - 4], 9
lea ecx, [esi + 0xf0]
call fcn.004185b0
mov byte [ebp - 4], 8
lea ecx, [esi + 0xd8]
call fcn.004185b0
mov byte [ebp - 4], 7
lea ecx, [esi + 0xc0]
call fcn.004185b0
mov byte [ebp - 4], 6
lea ecx, [esi + 0xa8]
call fcn.004185b0
mov byte [ebp - 4], 5
lea ecx, [esi + 0x90]
call fcn.004185b0
mov byte [ebp - 4], 4
lea ecx, [esi + 0x78]
call fcn.004185b0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x60]
call fcn.004185b0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.004185b0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.004185b0
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.004185b0
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.004185b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47c470
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x174
mov eax, dword [0x592174]
xor eax, esp
mov dword [esp + 0x170], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x18]
push 0x118
mov dword [esp + 0x18], eax
lea eax, [esp + 0x60]
push 0
push eax
mov dword [esp + 0x64], 0x11c
call fcn.0050d580
lea eax, [esp + 0x64]
push eax
call fcn.0041a630
add esp, 0x10
test al, al
je 0x47c52e
push dword [esp + 0x60]
push dword [esp + 0x60]
push 0x56a2c0
push esi
call fcn.00417fe0
call fcn.0041a5a0
test al, al
mov edx, 0x40
mov ecx, 0x20
cmovne ecx, edx
push ecx
push 0x569250
push edi
call fcn.00417fe0
lea edx, [esp + 0x88]
add esp, 0x1c
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x47c510
sub edx, ecx
lea eax, [esp + 0x6c]
mov ecx, dword [esp + 0x10]
sar edx, 1
push edx
push eax
call fcn.00418820
push 0x40
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.0050d580
add esp, 0xc
mov dword [esp + 0x18], 0x40
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
shrd ecx, eax, 0x14
shr eax, 0x14
push eax
push ecx
push 0x569250
push dword [esp + 0x20]
call fcn.00417fe0
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
push 0x569250
push ebx
call fcn.00417fe0
mov ecx, dword [esp + 0x188]
add esp, 0xc
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0050b067
mov esp, ebp
pop ebp
ret 0x14