joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415a30
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [ebx + 0x3c]
movzx ecx, word [eax + ebx + 0x14]
add eax, ebx
push ebp
movzx ebp, word [eax + 6]
push esi
xor edx, edx
xor esi, esi
push edi
lea edi, [ecx + eax + 0x18]
cmp dx, bp
je 0x415a8f
nop
movzx eax, si
lea eax, [eax + eax*4]
mov ecx, str.INIT
lea eax, [edi + eax*8]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x415a80
test dl, dl
je 0x415a7c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x415a80
add eax, 2
add ecx, 2
test dl, dl
jne 0x415a60
xor eax, eax
jmp 0x415a85
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x415a96
inc esi
cmp si, bp
jne 0x415a50
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
movzx eax, si
lea ecx, [eax + eax*4]
mov edx, dword [edi + ecx*8 + 0x10]
lea eax, [edi + ecx*8]
mov eax, dword [eax + 0x14]
add eax, ebx
xor ecx, ecx
mov byte [esp + 0xc], 0xff
mov byte [esp + 0xd], 0xd6
mov byte [esp + 0xe], 0xc7
mov byte [esp + 0xf], 5
test edx, edx
je 0x415a8f
mov esi, dword [esp + 0xc]
cmp dword [ecx + eax], esi
je 0x415ad7
inc ecx
cmp ecx, edx
jne 0x415ac6
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
pop edi
pop esi
lea eax, [ecx + eax + 8]
pop ebp
pop ecx
ret

Function at 0x415ae0
Capabilities:
Get file size
Parse pe header

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push 0xc0000000
xor bl, bl
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov byte [esp + 0x2b], bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x415bc6
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push esi
push 4
push esi
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
mov dword [esp + 0x1c], ebx
cmp ebx, esi
je 0x415bb3
push esi
push esi
push esi
push 0xf001f
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x415bac
mov ecx, 0x5a4d
cmp word [esi], cx
jne 0x415ba5
mov edx, dword [esi + 0x3c]
cmp dword [esi + edx], 0x4550
jne 0x415ba5
mov ebx, dword [sym.imp.imagehlp.dll_CheckSumMappedFile]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push edi
push esi
call ebx
test eax, eax
je 0x415ba1
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x14], ecx
je 0x415ba1
lea edx, [esp + 0x18]
push edx
mov dword [eax + 0x58], ecx
lea eax, [esp + 0x18]
push eax
push edi
push esi
call ebx
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x18]
sete byte [esp + 0x13]
mov ebx, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x10
ret
Function at 0x415bd0
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ecx
mov eax, dword [0x486adc]
push ebp
mov ebp, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x415be8
mov dword [ebp], eax
mov al, 1
pop ebp
pop ecx
ret
mov eax, dword [esp + 0xc]
push esi
push 0
push 0
push 3
push 0
push 1
push 0x120089
push eax
mov byte [esp + 0x27], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x415c82
push edi
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
je 0x415c7a
push ebx
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x415c72
mov ecx, 0x5a4d
cmp word [ebx], cx
jne 0x415c6b
mov edx, dword [ebx + 0x3c]
cmp dword [ebx + edx], 0x4550
jne 0x415c6b
call fcn.00415a30
test eax, eax
je 0x415c6b
sub eax, ebx
mov dword [ebp], eax
mov dword [0x486adc], eax
mov byte [esp + 0x13], 1
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, byte [esp + 0xb]
pop esi
pop ebp
pop ecx
ret

Function at 0x415c90
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x468bd6
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x487bb0]
xor eax, esp
mov dword [esp + 0x13c], eax
push ebx
mov eax, dword [0x487bb0]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [0x486b0c], ebx
jne 0x415dbf
push 0x103
lea eax, [esp + 0x45]
push ebx
push eax
mov byte [esp + 0x4c], bl
call fcn.0044fe60
add esp, 0xc
push ebx
push 0x25
lea ecx, [esp + 0x48]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x415d07
xor al, al
jmp 0x415dd0
lea eax, [esp + 0x40]
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xc], bl
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x415d20
sub eax, edx
push eax
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x10]
call fcn.004035a0
push str.drivers_tcpip.sys
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x15c], ebx
call fcn.0040ac00
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x486af8
mov byte [esp + 0x15c], 1
call fcn.00403020
cmp dword [esp + 0x3c], 0x10
jb 0x415d80
mov edx, dword [esp + 0x28]
push edx
call fcn.0044fc16
add esp, 4
cmp dword [esp + 0x20], 0x10
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
mov dword [esp + 0x150], 0xffffffff
jb 0x415daf
mov eax, dword [esp + 0xc]
push eax
call fcn.0044fc16
add esp, 4
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xc], bl
push 0xffffffffffffffff
push ebx
push 0x486af8
mov ecx, edi
call fcn.00403020
mov al, 1
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.0044ffb3
add esp, 0x14c
ret
Function at 0x416100
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x468c80
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x487bb0]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x487bb0]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov eax, dword [0x486adc]
cmp eax, 0xffffffff
je 0x416176
xor esi, esi
mov ebx, eax
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], esi
mov byte [esp + 0x18], 0
lea edi, [esp + 0x14]
mov dword [esp + 0x74], esi
call fcn.00415c90
test al, al
jne 0x41617d
cmp dword [esp + 0x2c], 0x10
jb 0x416176
mov eax, dword [esp + 0x18]
push eax
call fcn.0044fc16
add esp, 4
xor al, al
jmp 0x4162c0
xor ecx, ecx
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], esi
mov word [esp + 0x50], cx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x7c], 1
call fcn.00416010
mov ecx, dword [esp + 0x58]
add esp, 8
cmp dword [esp + 0x64], 8
jae 0x4161b6
lea ecx, [esp + 0x50]
call fcn.00415890
test al, al
jne 0x4161e3
lea ecx, [esp + 0x4c]
call fcn.004021f0
cmp dword [esp + 0x2c], 0x10
jb 0x416176
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0044fc16
add esp, 4
xor al, al
jmp 0x4162c0
push str._backup
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.0040ac00
mov ecx, dword [esp + 0x40]
mov ebp, 0x10
add esp, 0xc
cmp dword [esp + 0x48], ebp
jae 0x41620d
lea ecx, [esp + 0x34]
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x2c], ebp
jae 0x41621b
lea eax, [esp + 0x18]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push ecx
push eax
call esi
mov edi, dword [esp + 0x34]
cmp dword [esp + 0x48], ebp
jae 0x416234
lea edi, [esp + 0x34]
mov ecx, dword [esp + 0x7c]
push ecx
push ebx
call fcn.004159a0
add esp, 8
test al, al
jne 0x416265
lea ecx, [esp + 0x30]
call fcn.00402160
lea ecx, [esp + 0x4c]
call fcn.004021f0
lea ecx, [esp + 0x14]
call fcn.00402160
xor al, al
jmp 0x4162c0
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], ebp
jae 0x416273
lea eax, [esp + 0x34]
call fcn.00415ae0
test al, al
je 0x416246
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x2c], ebp
jae 0x41628a
lea ecx, [esp + 0x18]
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], ebp
jae 0x416298
lea eax, [esp + 0x34]
push 0
push ecx
push eax
call esi
test eax, eax
lea ecx, [esp + 0x30]
setne bl
call fcn.00402160
lea ecx, [esp + 0x4c]
call fcn.004021f0
lea ecx, [esp + 0x14]
call fcn.00402160
mov al, bl
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.0044ffb3
add esp, 0x64
ret 4
Function at 0x417c60
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push edi
xor edi, edi
mov ebp, ecx
cmp ebx, edi
jne 0x417c81
push edi
push edi
push edi
push 2
call fcn.0041af20
pop edi
pop ebp
xor al, al
pop ebx
ret 8
push esi
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x417ca1
lea esp, [esp]
mov ecx, esi
mov eax, dword [ecx]
mov edx, dword [eax]
mov esi, dword [esi + 0x40]
push 1
call edx
cmp esi, edi
jne 0x417c90
push 2
or eax, 0xffffffff
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x1c], edi
push edi
push ebx
mov dword [ebp + 8], eax
mov dword [ebp + 4], eax
call fcn.004528d0
push ebx
call fcn.00453192
push 0
push 0
push ebx
mov edi, eax
call fcn.004528d0
add esp, 0x1c
test edi, edi
jg 0x417cea
push 0
push 0
push 0
push 0xc
mov ecx, ebp
call fcn.0041af20
pop esi
pop edi
pop ebp
xor al, al
pop ebx
ret 8
lea eax, [edi + 1]
push eax
call fcn.00424e26
push ebx
push 1
mov esi, eax
push edi
push esi
mov byte [esi], 0
call fcn.00452829
add esp, 0x14
cmp eax, 1
je 0x417d2b
push esi
call fcn.0044ffa8
add esp, 4
push 0
push 0
push 0
push 2
mov ecx, ebp
call fcn.0041af20
pop esi
pop edi
pop ebp
xor al, al
pop ebx
ret 8
mov byte [esi + edi], 0
cmp byte [esi], 0
mov eax, esi
mov ecx, esi
je 0x417d54
mov dl, byte [eax]
cmp dl, 0xd
jne 0x417d4b
mov byte [ecx], 0xa
inc eax
inc ecx
cmp byte [eax], 0xa
jne 0x417d4f
jmp 0x417d4e
mov byte [ecx], dl
inc ecx
inc eax
cmp byte [eax], 0
jne 0x417d38
mov eax, dword [esp + 0x18]
push eax
mov byte [ecx], 0
mov edx, dword [ebp]
mov edx, dword [edx + 8]
push 0
push esi
mov ecx, ebp
call edx
push esi
call fcn.0044ffa8
add esp, 4
pop esi
xor eax, eax
cmp byte [ebp + 0x44], al
pop edi
pop ebp
sete al
pop ebx
ret 8

Function at 0x41da40
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov byte [esi + 0x68], al
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov eax, dword [esp + 8]
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
cmp dword [eax + 0x18], 0x10
mov ecx, dword [eax + 0x14]
jb 0x41da88
mov eax, dword [eax + 4]
push ecx
push eax
mov ecx, esi
call fcn.0041d860
mov eax, esi
pop esi
ret 4
push ecx
add eax, 4
push eax
mov ecx, esi
call fcn.0041d860
mov eax, esi
pop esi
ret 4
Function at 0x41ddd0
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x204
mov eax, dword [0x487bb0]
xor eax, esp
mov dword [esp + 0x200], eax
push ebx
push ebp
mov ebp, dword [esp + 0x210]
push esi
push edi
xor ebx, ebx
push 0xff
lea eax, [esp + 0x15]
push ebx
push eax
mov byte [esp + 0x1c], bl
call fcn.0044fe60
push 0xff
lea ecx, [esp + 0x121]
push ebx
push ecx
mov byte [esp + 0x128], bl
call fcn.0044fe60
mov esi, dword [esp + 0x23c]
mov edi, dword [esp + 0x238]
add esp, 0x18
xor ecx, ecx
mov eax, ecx
cdq
idiv esi
mov byte [esp + ecx + 0x10], cl
inc ecx
cmp ecx, 0x100
mov dl, byte [edx + edi]
mov byte [esp + ecx + 0x10f], dl
jl 0x41de32
xor ecx, ecx
xor eax, eax
jmp 0x41de60
mov dl, byte [esp + eax + 0x10]
movzx esi, byte [esp + eax + 0x110]
movzx edi, dl
add esi, ecx
add edi, esi
mov ecx, edi
and ecx, 0x800000ff
jns 0x41de85
dec ecx
or ecx, 0xffffff00
inc ecx
mov bl, byte [esp + ecx + 0x10]
mov byte [esp + eax + 0x10], bl
inc eax
cmp eax, 0x100
mov byte [esp + ecx + 0x10], dl
jl 0x41de60
mov edx, dword [esp + 0x21c]
xor edi, edi
xor esi, esi
xor eax, eax
test edx, edx
jle 0x41df0d
lea ebx, [ebx]
inc esi
and esi, 0x800000ff
jns 0x41dec1
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [esp + esi + 0x10]
movzx ebx, cl
add edi, ebx
and edi, 0x800000ff
jns 0x41deda
dec edi
or edi, 0xffffff00
inc edi
mov bl, byte [esp + edi + 0x10]
mov byte [esp + esi + 0x10], bl
mov byte [esp + edi + 0x10], cl
movzx ebx, byte [esp + esi + 0x10]
movzx ecx, cl
add ebx, ecx
and ebx, 0x800000ff
jns 0x41df00
dec ebx
or ebx, 0xffffff00
inc ebx
movzx ecx, byte [esp + ebx + 0x10]
xor byte [eax + ebp], cl
inc eax
cmp eax, edx
jl 0x41deb0
mov ecx, dword [esp + 0x210]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.0044ffb3
add esp, 0x204
ret

Function at 0x41e3b0
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
mov dword [eax + 0x28], ecx
ret
Function at 0x41f720
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x41f72b
xor eax, eax
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push esi
not eax
cmp edx, 8
jb 0x41f809
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x471738]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x471738]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x471738]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x471738]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x471738]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x471738]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x471738]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x471738]
inc ecx
sub edx, 8
sub esi, 1
jne 0x41f745
pop edi
test edx, edx
je 0x41f82b
lea ecx, [ecx]
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x471738]
inc ecx
sub edx, 1
jne 0x41f810
not eax
pop esi
ret

Function at 0x41f830
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [edx]
movsx ecx, byte [esp + 8]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x471738]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x471738]
mov dword [edx + 8], ecx
ret

Function at 0x41f880
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ecx, dword [esi + 8]
mov eax, ecx
and eax, 0xfffd
or eax, 2
mov edx, eax
xor edx, 1
imul edx, eax
mov al, byte [esp + 0x10]
shr edx, 8
xor al, dl
mov edx, dword [esi]
push edi
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x471738]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x471738]
pop edi
mov dword [esi + 8], ecx
pop esi
pop ebx
ret
Function at 0x41fd00
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, ebx
imul esi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x41fd42
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 4]
push 0
lea eax, [esp + 0x18]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41fd36
mov byte [edi + 8], 1
mov eax, dword [esp + 0x14]
pop edi
xor edx, edx
pop esi
div ebx
pop ebx
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x41fd53
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x10]
push esi
push eax
push ecx
call fcn.00450ff0
add dword [edi + 0x1c], esi
add esp, 0xc
pop edi
mov eax, esi
xor edx, edx
pop esi
div ebx
pop ebx
ret

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

Disassembly:
sub esp, 0x414
mov eax, dword [0x487bb0]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, dword [esp + 0x420]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov esi, dword [esp + 0x424]
test esi, esi
je 0x420e30
push esi
call ebp
cmp eax, 0xffffffff
jne 0x420e30
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x420f16
mov ecx, ebx
mov edx, ebx
movzx eax, ax
cmp ax, 0x2f
je 0x420e4f
cmp ax, 0x5c
jne 0x420e51
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x420e43
push edi
cmp ecx, ebx
je 0x420e94
sub ecx, ebx
sar ecx, 1
add ecx, ecx
mov edi, ecx
push edi
lea eax, [esp + 0x21c]
push ebx
push eax
call fcn.00450ff0
lea edx, [esp + 0x224]
push edx
xor ecx, ecx
push esi
mov word [esp + edi + 0x22c], cx
call fcn.00420df0
add esp, 0x14
xor eax, eax
mov word [esp + 0x10], ax
test esi, esi
je 0x420ebf
lea edx, [esp + 0x10]
mov eax, esi
sub edx, esi
jmp 0x420eb0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x420eb0
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x420ec3
lea edi, [esp + 0x10]
sub eax, edx
add edi, 0xfffffffe
jmp 0x420ee0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x420ee0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call ebp
pop edi
cmp eax, 0xffffffff
jne 0x420f16
push 0
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x41c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044ffb3
add esp, 0x414
ret
Function at 0x422660
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp edi, ebx
jne 0x42267a
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x18], ebx
je 0x42266f
cmp dword [edi + 0x7c], ebx
je 0x42268d
push edi
call fcn.00420720
add esp, 4
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push edi
call fcn.00420530
add esp, 0x10
test eax, eax
je 0x4226b4
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 8
ret
push esi
push 0x84
call fcn.00451432
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4226f5
push 0x4000
call fcn.00451432
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0x422701
push esi
call fcn.00451355
add esp, 4
pop esi
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 8
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x42274d
lea eax, [esi + 4]
push eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.0041fb00
add esp, 4
test eax, eax
jne 0x42274d
mov dword [esi + 0x40], 1
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0x44]
mov dword [esi + 0x5c], edx
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov ecx, dword [edi + 0x30]
shr ecx, 3
test cl, 1
je 0x422777
mov dl, byte [edi + 0x39]
mov byte [esi + 0x80], dl
jmp 0x422780
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
movzx ecx, byte [esi + 0x6c]
neg ecx
sbb ecx, ecx
push ebp
mov ebp, dword [esp + 0x20]
and ecx, 0xc
lea ebx, [esi + 0x70]
mov dword [esi + 0x7c], ecx
mov dword [ebx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
test ebp, ebp
je 0x4227c7
mov edi, edi
movzx eax, byte [ebp]
test al, al
je 0x4227c7
push eax
push ebx
call fcn.0041f830
add esp, 8
add ebp, 1
jne 0x4227b0
mov edx, dword [edi + 0x78]
mov eax, dword [esp + 0x14]
lea ecx, [edx + eax + 0x1e]
pop ebp
mov dword [esi + 0x3c], ecx
mov dword [esi + 8], 0
mov dword [edi + 0x7c], esi
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x422a70
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx], 0
jne 0x422b45
cmp dword [ebx + 4], 0xffffffff
jne 0x422b45
push edi
lea edi, [ebx + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x422aa0
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x242]
cmp ax, 0x5c
je 0x422ad9
cmp ax, 0x2f
je 0x422ad9
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x422ac6
mov eax, dword [0x46cbb0]
mov dword [edi], eax
mov edi, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x10]
cmp edi, 1
jne 0x422b04
push 1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x422b04
pop esi
pop edi
mov eax, 0x2000000
pop ebx
ret 0xc
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edi
push edx
push esi
call fcn.0041fbb0
add esp, 0x10
test eax, eax
jne 0x422b26
mov eax, dword [esp + 0x18]
pop esi
pop edi
pop ebx
ret 0xc
push eax
call fcn.00422470
add esp, 4
mov dword [ebx], eax
neg eax
sbb eax, eax
pop esi
and eax, 0xfffffe00
pop edi
add eax, 0x200
pop ebx
ret 0xc
mov eax, 0x1000000
pop ebx
ret 0xc
Function at 0x4230a0
Capabilities:
Create directory

Disassembly:
sub esp, 0x20c
mov eax, dword [0x487bb0]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x214]
test esi, esi
jne 0x4230d8
xor eax, eax
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0044ffb3
add esp, 0x20c
ret
push 0x208
lea eax, [esp + 8]
push 0
push eax
call fcn.0044fe60
add esp, 0xc
push esi
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esp + eax*2 + 2], 0x5c
lea esi, [esp + eax*2 + 2]
je 0x4230c0
lea eax, [esp + 4]
cmp esi, eax
jbe 0x42312d
cmp word [esi], 0x5c
je 0x42312d
xor ecx, ecx
mov word [esi], cx
sub esi, 2
lea edx, [esp + 4]
cmp esi, edx
ja 0x423117
lea eax, [esp + 4]
cmp esi, eax
jne 0x423150
mov eax, 1
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0044ffb3
add esp, 0x20c
ret
xor ecx, ecx
mov word [esi], cx
sub esi, 2
lea edx, [esp + 4]
cmp esi, edx
je 0x4230c0
mov eax, edx
cmp esi, eax
jbe 0x42319d
lea ebx, [ebx]
lea ecx, [esp + 4]
push ecx
call fcn.00423030
add esp, 4
test eax, eax
jne 0x42319d
cmp word [esi], 0x5c
je 0x423190
sub esi, 2
cmp word [esi], 0x5c
jne 0x423187
xor edx, edx
lea eax, [esp + 4]
mov word [esi], dx
cmp esi, eax
ja 0x423170
cmp word [esi + 2], 0
push edi
je 0x4231dd
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4231b0
mov ecx, 0x5c
mov word [esi], cx
jmp 0x4231c0
add esi, 2
cmp word [esi], 0
jne 0x4231c0
push 0
lea edx, [esp + 0xc]
push edx
call edi
test eax, eax
je 0x4231f9
cmp word [esi + 2], 0
jne 0x4231b0
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0044ffb3
add esp, 0x20c
ret
mov ecx, dword [esp + 0x210]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0044ffb3
add esp, 0x20c
ret