joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410181
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
mov eax, ecx
and eax, 0x1fff0000
cmp eax, 0x40000
jne 0x41019e
movzx eax, cx
test ecx, ecx
js 0x4101a3
mov eax, 0xfa0
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push 0x464120
call fcn.0041105c
add esp, 0x14
call fcn.0041017b
push eax
call fcn.0043a0ad
int3

Function at 0x410750
Capabilities:
Accept command line arguments

Disassembly:
push 0x10
mov eax, 0x458cb9
call fcn.0045722c
xor edi, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, eax
xor edx, edx
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.004206bd
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044283b
mov esi, eax
mov dword [ebp - 0x18], esi
xor ecx, ecx
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x14]
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044283b
pop ecx
mov edi, eax
pop ecx
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x10]
mov edx, esi
push eax
push edi
mov ecx, ebx
call fcn.004206bd
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x41080f
mov ecx, dword [ebp - 0x10]
mov edx, esi
call fcn.004106fa
mov ebx, eax
call dword [sym.imp.ole32.dll_CoUninitialize]
test edi, edi
je 0x4107fc
push edi
call fcn.00442570
pop ecx
test esi, esi
je 0x410807
push esi
call fcn.00442570
pop ecx
mov eax, ebx
call fcn.004571f5
ret
push eax
push 0x35
push 0x409898
call fcn.00410181
int3

Function at 0x411b68
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x50
mov eax, 0x458e1d
call fcn.00457260
mov ebx, dword [ebp + 8]
xor eax, eax
and dword [ebp - 0x48], 0
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
and dword [ebp - 4], eax
mov esi, dword [0x4641e8]
jmp 0x411c0e
push esi
lea ecx, [ebp - 0x28]
call fcn.00413f42
push 0x409b34
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0041430b
cmp dword [eax + 0x14], 8
jb 0x411bbb
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x40]
mov edi, eax
call fcn.00410a1a
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
cmp edi, 0xffffffff
jne 0x411c25
push 0x409b68
call fcn.0041430b
cmp dword [eax + 0x14], 8
jb 0x411be9
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x40]
mov edi, eax
call fcn.00410a1a
cmp edi, 0xffffffff
jne 0x411c18
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00410a1a
add esi, 0x18
cmp esi, dword [0x4641ec]
jne 0x411b96
jmp 0x411c48
push 0x409b68
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
jmp 0x411c2a
push 0x409b34
call fcn.0041430b
push eax
lea ecx, [ebp - 0x58]
call fcn.00413e92
lea ecx, [ebp - 0x40]
call fcn.00410a1a
lea ecx, [ebp - 0x28]
call fcn.00410a1a
lea eax, [ebp - 0x58]
mov ecx, ebx
push eax
call fcn.00413ecb
lea ecx, [ebp - 0x58]
call fcn.00410a1a
mov eax, ebx
call fcn.0045720a
ret 4
Function at 0x412176
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458f56
mov eax, dword fs:[0]
push eax
mov eax, 0x1038
call fcn.00443130
mov eax, dword [0x462e40]
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 esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1040], eax
mov dword [ebp - 0x103c], eax
xor eax, eax
mov dword [ebp - 0x1044], eax
push eax
push 0x64
push 0xa
mov dword [ebp - 4], eax
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov ebx, eax
test ebx, ebx
je 0x4122e9
push ebx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x412203
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 0x18
mov esi, eax
mov ecx, esp
push 0x409c1c
jmp 0x4122fb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push dword [esi + 0x24]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0x1000
mov esi, eax
xor ebx, ebx
lea eax, [ebp - 0x1010]
push ebx
push eax
call fcn.004438e0
add esp, 0xc
lea eax, [ebp - 0x1010]
push 0x800
push eax
push esi
push edi
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x412265
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 0x18
mov esi, eax
mov ecx, esp
push 0x409c50
jmp 0x4122fb
lea ecx, [ebp - 0x1010]
push 2
lea edx, [ecx + 2]
pop edi
mov ax, word [ecx]
add ecx, edi
cmp ax, bx
jne 0x412271
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
xor ecx, ecx
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044283b
pop ecx
lea ecx, [ebp - 0x1010]
mov esi, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, edi
cmp ax, bx
jne 0x41229f
sub ecx, edx
lea eax, [ebp - 0x1010]
sar ecx, 1
lea ecx, [ecx*2 + 2]
push ecx
push eax
push esi
call fcn.00443a40
mov eax, dword [ebp - 0x1040]
add esp, 0xc
mov dword [eax], esi
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.0044255f
leave
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 0x18
mov esi, eax
mov ecx, esp
push 0x409bc8
call fcn.00413f00
push esi
lea ecx, [ebp - 0x1038]
call fcn.00411425
push 0x46189c
lea eax, [ebp - 0x1038]
push eax
call fcn.004450ad
int3

Function at 0x41428b
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
push edi
cmp dword [ecx + 0x14], 8
mov edi, dword [ecx + 0x10]
jb 0x4142a0
mov ecx, dword [ecx]
xor esi, esi
mov edx, 0x811c9dc5
add edi, edi
je 0x4142bc
movzx eax, byte [esi + ecx]
xor eax, edx
imul edx, eax, 0x1000193
inc esi
cmp esi, edi
jb 0x4142ab
pop edi
mov eax, edx
pop esi
pop ebp
ret 4
Function at 0x416d59
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x284
mov eax, dword [0x462e40]
xor eax, esp
mov dword [esp + 0x280], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
push edi
push 0x250
mov dword [ebx + 4], eax
lea eax, [esp + 0x14]
push 0
push eax
mov byte [ebx], 0
call fcn.004438e0
lea edx, [ebx + 8]
mov ecx, 0x94
lea esi, [esp + 0x1c]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x18]
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x416dbc
mov eax, dword [esi]
xor ecx, ecx
push ecx
push ecx
push ecx
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov ecx, eax
mov eax, dword [ebx + 4]
mov dword [eax + 0x18], ecx
mov eax, dword [ebx + 4]
cmp dword [eax + 0x18], 0xffffffff
jne 0x416de9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x416e02
mov byte [ebx], 1
mov ecx, dword [esp + 0x28c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044255f
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea ecx, [esp + 0x26c]
call fcn.00416d1c
push 0x461920
lea eax, [esp + 0x268]
push eax
call fcn.004450ad
int3

Function at 0x417051
Capabilities:
Get common file path

Disassembly:
push 0x20
mov eax, 0x4596d8
call fcn.00457260
mov esi, ecx
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [ebp - 0x2c], esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test edi, edi
jne 0x41709f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfaa
push 0x464120
call fcn.0041105c
add esp, 0xc
mov dword [esi + 0x10], ebx
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x41710c
push ebx
push edi
lea ecx, [ebp - 0x28]
call fcn.0041a70a
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
jb 0x4170b8
mov eax, dword [ebp - 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x4170ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfaa
push 0x464120
call fcn.0041105c
add esp, 0xc
mov dword [esi + 0x10], ebx
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x417104
push ecx
dec eax
lea ecx, [ebp - 0x28]
push eax
call fcn.0041a657
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00413ecb
lea ecx, [ebp - 0x28]
call fcn.00410a1a
mov eax, esi
call fcn.0045720a
ret
Function at 0x41774b
Capabilities:
Delete file

Disassembly:
push 0x548
mov eax, 0x459793
call fcn.00457260
mov edi, ecx
push edi
lea ecx, [ebp - 0x58]
call fcn.00413f00
and dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
push 0x40a654
call fcn.0041479e
push 0x40a5d0
lea ecx, [ebp - 0x58]
call fcn.0041479e
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x74]
call fcn.00413f42
or dword [ebp - 0x5c], 0xffffffff
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 1
push eax
push eax
lea ecx, [ebp - 0x2fc]
call fcn.00416d59
jmp 0x4178a9
lea eax, [ebp - 0x2c8]
push eax
lea ecx, [ebp - 0x28]
call fcn.00413f00
push edi
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 2
call fcn.00413f00
push 0x40a024
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x8c]
call fcn.004142ce
mov edx, eax
mov byte [ebp - 4], 4
mov ecx, dword [edx + 0x14]
mov esi, dword [edx + 0x10]
sub ecx, esi
cmp dword [ebp - 0x18], ecx
jbe 0x417813
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
cmp eax, esi
jb 0x417813
cmp dword [edx + 0x14], 8
jb 0x417806
mov edx, dword [edx]
push esi
push edx
push ecx
lea ecx, [ebp - 0x28]
call fcn.0041e391
jmp 0x41782a
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x41781f
mov eax, dword [ebp - 0x28]
push dword [ebp - 0x18]
mov ecx, edx
push eax
call fcn.00414810
push eax
lea ecx, [ebp - 0x40]
call fcn.00413ecb
lea ecx, [ebp - 0x8c]
call fcn.00410a1a
lea ecx, [ebp - 0xa4]
call fcn.00410a1a
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.00410a1a
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
jb 0x417861
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x417892
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
jb 0x41787e
mov ecx, dword [ebp - 0x40]
push eax
push ecx
push 0xbb8
push 0x464120
call fcn.0041105c
add esp, 0x10
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00410a1a
lea ecx, [ebp - 0x2fc]
call fcn.00416ea7
lea ecx, [ebp - 0x554]
call fcn.00416e29
lea eax, [ebp - 0x554]
push eax
lea ecx, [ebp - 0x2fc]
call fcn.00416e6e
test al, al
jne 0x4177ac
lea ecx, [ebp - 0x74]
call fcn.00416f14
lea ecx, [ebp - 0x58]
call fcn.00410a1a
call fcn.0045720a
ret
Function at 0x41ade0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x462e40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0xffff
push edi
mov edi, ecx
cmp bx, si
jne 0x41ae08
xor eax, eax
jmp 0x41ae5e
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x41ae31
mov edx, dword [edi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x41ae31
dec dword [edx]
mov edx, dword [edi + 0x20]
mov eax, dword [ebp + 8]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], ax
jmp 0x41ae5e
cmp dword [edi + 0x4c], 0
je 0x41ae5b
mov ecx, edi
call fcn.0041c10d
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x41ae6f
push dword [edi + 0x4c]
push esi
call fcn.0044abcb
pop ecx
pop ecx
cmp ax, bx
je 0x41ae5b
movzx ebx, si
mov ax, bx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044255f
leave
ret 4
mov word [ebp - 0x28], si
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x4651e8]
mov ecx, dword [ebp - 0x2c]
call esi
test eax, eax
js 0x41ae5b
cmp eax, 1
jle 0x41aec9
cmp eax, 3
jne 0x41ae5b
push dword [edi + 0x4c]
push dword [ebp - 0x28]
call fcn.0044abcb
pop ecx
pop ecx
cmp ax, bx
je 0x41ae5b
mov eax, dword [ebp + 8]
movzx ebx, ax
jmp 0x41ae5b
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x41aeea
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.0044b49f
add esp, 0x10
cmp esi, eax
jne 0x41ae5b
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x41ae5b
mov eax, dword [ebp + 8]
jmp 0x41ae5e

Function at 0x41c1a7
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x462e40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
cmp dword [ebx + 0x38], 0
je 0x41c213
cmp byte [ebx + 0x3e], 0
je 0x41c213
mov esi, 0xffff
push esi
call fcn.0041ade0
cmp si, ax
je 0x41c24c
push edi
mov edi, dword [ebx + 0x38]
mov eax, dword [edi]
mov esi, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebx + 0x40]
push eax
call dword [0x4651e8]
mov ecx, edi
call esi
xor ecx, ecx
pop edi
sub eax, ecx
je 0x41c223
sub eax, 1
je 0x41c226
dec eax
sub eax, 1
jne 0x41c24c
mov byte [ebx + 0x3e], cl
mov al, 1
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044255f
leave
ret
mov byte [ebx + 0x3e], cl
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x41c243
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.0044b49f
add esp, 0x10
cmp esi, eax
jne 0x41c24c
cmp byte [ebx + 0x3e], 0
sete al
jmp 0x41c215
xor al, al
jmp 0x41c215
Function at 0x4243ca
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
xor edx, edx
movzx eax, byte [edx + edi]
xor eax, esi
imul esi, eax, 0x1000193
inc edx
cmp edx, 4
jb 0x4243db
mov eax, dword [ecx + 0x18]
pop edi
and eax, esi
pop esi
pop ebp
ret 4

Function at 0x427a05
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x30
mov eax, 0x45ad8c
call fcn.00457260
mov ebx, dword [ebp + 8]
xor esi, esi
and dword [ebp - 0x34], 0
xor edi, edi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], edi
and dword [ebp - 4], edi
call fcn.00416775
push 0x18
pop ecx
test eax, eax
je 0x427a70
call fcn.00416775
push eax
lea ecx, [ebp - 0x28]
call fcn.00413f00
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
push edi
lea ecx, [ebp - 0x34]
call fcn.00420ba4
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00410a1a
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
push 0x18
pop ecx
jmp 0x427aff
mov eax, dword [0x46415c]
sub eax, dword [0x464158]
cdq
idiv ecx
and dword [ebp - 0x38], 0
test eax, eax
je 0x427aff
mov ebx, dword [ebp - 0x38]
push ebx
call fcn.00416737
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x427ae6
test al, 0x10
je 0x427ae6
push ebx
call fcn.00416737
push eax
lea ecx, [ebp - 0x28]
call fcn.00413f00
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
push eax
cmp edi, esi
je 0x427acb
mov ecx, esi
call fcn.00413ecb
push 0x18
pop eax
add esi, eax
mov dword [ebp - 0x30], esi
jmp 0x427ada
push esi
lea ecx, [ebp - 0x34]
call fcn.00420ba4
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00410a1a
mov eax, dword [0x46415c]
inc ebx
sub eax, dword [0x464158]
push 0x18
cdq
pop ecx
idiv ecx
cmp ebx, eax
jb 0x427a89
mov ebx, dword [ebp - 0x3c]
cmp byte [0x464156], 0
je 0x427b81
mov eax, dword [0x4641ec]
sub eax, dword [0x4641e8]
cdq
idiv ecx
and dword [ebp - 0x38], 0
test eax, eax
je 0x427b81
mov ebx, dword [ebp - 0x38]
push ebx
call fcn.00416795
push eax
lea ecx, [ebp - 0x28]
call fcn.00413f00
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
push eax
cmp edi, esi
je 0x427b4d
mov ecx, esi
call fcn.00413ecb
push 0x18
pop eax
add esi, eax
mov dword [ebp - 0x30], esi
jmp 0x427b5c
push esi
lea ecx, [ebp - 0x34]
call fcn.00420ba4
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00410a1a
mov eax, dword [0x4641ec]
inc ebx
sub eax, dword [0x4641e8]
push 0x18
cdq
pop ecx
idiv ecx
cmp ebx, eax
jb 0x427b21
mov ebx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x34]
xor eax, eax
mov dword [ebx], ecx
lea ecx, [ebp - 0x34]
mov dword [ebx + 4], esi
mov dword [ebx + 8], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
call fcn.00410968
mov eax, ebx
call fcn.0045720a
ret 4
Function at 0x428fec
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xa4
mov eax, 0x45b128
call fcn.00457260
mov ebx, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xb0]
push eax
call fcn.00427a05
and dword [ebp - 4], 0
mov edi, dword [ebp - 0xb0]
jmp 0x4290fa
push edi
lea ecx, [ebp - 0x40]
call fcn.00413f42
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push 0x40a024
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa0]
call fcn.0041430b
push dword [ebp - 0xa4]
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x88]
call fcn.004143e5
push 0x40a5f4
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
call fcn.004142ce
push 0x40a5d0
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x58]
call fcn.004142ce
push eax
lea ecx, [ebp - 0x28]
call fcn.00413e92
lea ecx, [ebp - 0x58]
call fcn.00410a1a
lea ecx, [ebp - 0x70]
call fcn.00410a1a
lea ecx, [ebp - 0x88]
call fcn.00410a1a
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 2
call fcn.00410a1a
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x4290d7
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x429122
lea ecx, [ebp - 0x28]
call fcn.00410a1a
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00410a1a
add edi, 0x18
cmp edi, dword [ebp - 0xac]
jne 0x42902a
and dword [esi], 0
and dword [esi + 4], 0
lea ecx, [ebp - 0xb0]
call fcn.00410968
mov eax, esi
call fcn.0045720a
ret 8
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
push esi
call fcn.00427ba9
lea ecx, [ebp - 0x28]
call fcn.00410a1a
lea ecx, [ebp - 0x40]
call fcn.00410a1a
jmp 0x42910d
Function at 0x437f20
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x462e40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
cmp ebx, 0xffffffff
jne 0x437f45
xor eax, eax
jmp 0x438019
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x437f71
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [esi + ecx]
cmp ecx, eax
jae 0x437f71
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x438011
cmp dword [edi + 0x4c], 0
je 0x438015
mov ecx, edi
call fcn.00438951
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x437f91
movsx eax, bl
jmp 0x437fd4
mov byte [ebp - 0x25], bl
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x4651e8]
mov ecx, dword [ebp - 0x2c]
call esi
test eax, eax
js 0x438015
cmp eax, 1
jle 0x437fe8
cmp eax, 3
jne 0x438015
movsx eax, byte [ebp - 0x25]
push dword [edi + 0x4c]
push eax
call fcn.0044bcc7
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x438011
or ebx, eax
jmp 0x438011
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x438005
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.0044b49f
add esp, 0x10
cmp esi, eax
jne 0x438015
lea eax, [ebp - 0x25]
mov byte [edi + 0x3d], 1
cmp dword [ebp - 0x34], eax
je 0x438015
mov eax, ebx
jmp 0x438018
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0044255f
leave
ret 4

Function at 0x438976
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x462e40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
cmp dword [ebx + 0x38], 0
je 0x4389de
cmp byte [ebx + 0x3d], 0
je 0x4389de
push 0xffffffffffffffff
call fcn.00437f20
cmp eax, 0xffffffff
je 0x438a17
push edi
mov edi, dword [ebx + 0x38]
mov eax, dword [edi]
mov esi, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebx + 0x40]
push eax
call dword [0x4651e8]
mov ecx, edi
call esi
xor ecx, ecx
pop edi
sub eax, ecx
je 0x4389ee
sub eax, 1
je 0x4389f1
dec eax
sub eax, 1
jne 0x438a17
mov byte [ebx + 0x3d], cl
mov al, 1
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044255f
leave
ret
mov byte [ebx + 0x3d], cl
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x438a0e
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.0044b49f
add esp, 0x10
cmp esi, eax
jne 0x438a17
cmp byte [ebx + 0x3d], 0
sete al
jmp 0x4389e0
xor al, al
jmp 0x4389e0
Function at 0x4425a7
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0x4425e4
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x4425dd
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x4425e9
add edx, 0x28
cmp edx, esi
jne 0x4425ce
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x4425e6

Function at 0x44d1e6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044ce63

Function at 0x4504c6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00450177

Function at 0x4504d1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00450301

Function at 0x4570b0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4570ee
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4570e6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4570f0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4570d6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4571c0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x4571f1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4571f1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x4571f1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret