joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a518
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
mov edx, dword [ebp - 0x704]
add edx, 1
mov dword [ebp - 0x704], edx
mov eax, dword [ebp - 0x700]
mov ecx, dword [ebp - 0x704]
cmp ecx, dword [eax + 0x18]
jae 0x40a5e0
mov edx, dword [ebp - 0x704]
mov eax, dword [ebp - 0x18c0]
mov ecx, dword [ebp - 0x2fc]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x708], ecx
mov edx, dword [ebp - 0x704]
mov eax, dword [ebp - 0x18c4]
movzx ecx, word [eax + edx*2]
mov edx, dword [ebp - 0x18c8]
mov eax, dword [ebp - 0x2fc]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x18cc], eax
mov dword [ebp - 0x184], 0
jmp 0x40a444
mov ecx, dword [ebp - 0x184]
add ecx, 1
mov dword [ebp - 0x184], ecx
mov edx, dword [ebp - 0x708]
add edx, dword [ebp - 0x184]
movsx eax, byte [edx]
test eax, eax
je 0x40a4f6
mov ecx, dword [ebp - 0x184]
movsx edx, byte [ebp + ecx - 0x804]
test edx, edx
je 0x40a4f6
push ebx
or ebx, 0x119b3
pop ebx
push edi
push ecx
add esp, 4
or edi, 0xa34e
add edi, 0xf694
add edi, 0xed7a
sub edi, 0x5eff
pop edi
push eax
push edi
add esp, 4
jmp 0x40a4a2
pop eax
mov eax, dword [ebp - 0x708]
add eax, dword [ebp - 0x184]
movsx ecx, byte [eax]
mov edx, dword [ebp - 0x184]
movsx eax, byte [ebp + edx - 0x804]
cmp ecx, eax
je 0x40a4e8
invalid
mov ecx, dword [ebp - 0x708]
add ecx, dword [ebp - 0x184]
movsx edx, byte [ecx]
xor edx, 0x20
mov eax, dword [ebp - 0x184]
movsx ecx, byte [ebp + eax - 0x804]
cmp edx, ecx
jne 0x40a4ef
jmp 0x40a435
jmp 0x40a4f6
push edi
push ebx
add esp, 4
sub edi, 0x10d96
add edi, 0x97b9
pop edi
push ebx
call fcn.0040a518
add byte [edi], bh
inc ebx
cmp bh, byte [ebx]
inc ecx
dec eax
xor eax, 0xc4833a3a
add esp, 4
invalid
jmp 0x40a4ac
add esp, 4
sub ebx, 0xa08e
sub ebx, 0x5232
pop ebx
mov edx, dword [ebp - 0x708]
add edx, dword [ebp - 0x184]
movsx eax, byte [edx]
mov ecx, dword [ebp - 0x184]
movsx edx, byte [ebp + ecx - 0x804]
or eax, 0xfffff7fc
cmp eax, edx
jne 0x40a555
mov dword [ebp - 0xc40], 0
jmp 0x40a5c4
push edx
add edx, 0x12e14
add edx, 0x15fef
call 0x40a571
add byte [eax + 0x3f], dl
dec ecx
dec edx
inc eax
inc ecx
push eax
dec eax
add esp, 4
pop edx
push edi
push eax
add esp, 4
or edi, 0x14c7c
sub edi, 0x1903
pop edi
mov eax, dword [ebp - 0x708]
add eax, dword [ebp - 0x184]
movsx ecx, byte [eax]
or ecx, 0x20
mov edx, dword [ebp - 0x184]
movsx eax, byte [ebp + edx - 0x804]
or eax, 0x20
cmp ecx, eax
jge 0x40a5ba
mov dword [ebp - 0xc40], 0xffffffff
jmp 0x40a5c4
mov dword [ebp - 0xc40], 1
cmp dword [ebp - 0xc40], 0
jne 0x40a5db
mov ecx, dword [ebp - 0x18cc]
mov dword [ebp - 0x4e0], ecx
jmp 0x40a5ec
jmp 0x40a3c5
mov edx, dword [ebp - 0x70c]
mov dword [ebp - 0x4e0], edx
mov eax, dword [ebp - 0x4e0]
mov dword [ebp - 0x738], eax
Function at 0x40a571
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
mov edx, dword [ebp - 0x704]
add edx, 1
mov dword [ebp - 0x704], edx
mov eax, dword [ebp - 0x700]
mov ecx, dword [ebp - 0x704]
cmp ecx, dword [eax + 0x18]
jae 0x40a5e0
mov edx, dword [ebp - 0x704]
mov eax, dword [ebp - 0x18c0]
mov ecx, dword [ebp - 0x2fc]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x708], ecx
mov edx, dword [ebp - 0x704]
mov eax, dword [ebp - 0x18c4]
movzx ecx, word [eax + edx*2]
mov edx, dword [ebp - 0x18c8]
mov eax, dword [ebp - 0x2fc]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x18cc], eax
mov dword [ebp - 0x184], 0
jmp 0x40a444
mov ecx, dword [ebp - 0x184]
add ecx, 1
mov dword [ebp - 0x184], ecx
mov edx, dword [ebp - 0x708]
add edx, dword [ebp - 0x184]
movsx eax, byte [edx]
test eax, eax
je 0x40a4f6
mov ecx, dword [ebp - 0x184]
movsx edx, byte [ebp + ecx - 0x804]
test edx, edx
je 0x40a4f6
push ebx
or ebx, 0x119b3
pop ebx
push edi
push ecx
add esp, 4
or edi, 0xa34e
add edi, 0xf694
add edi, 0xed7a
sub edi, 0x5eff
pop edi
push eax
push edi
add esp, 4
jmp 0x40a4a2
pop eax
mov eax, dword [ebp - 0x708]
add eax, dword [ebp - 0x184]
movsx ecx, byte [eax]
mov edx, dword [ebp - 0x184]
movsx eax, byte [ebp + edx - 0x804]
cmp ecx, eax
je 0x40a4e8
invalid
mov ecx, dword [ebp - 0x708]
add ecx, dword [ebp - 0x184]
movsx edx, byte [ecx]
xor edx, 0x20
mov eax, dword [ebp - 0x184]
movsx ecx, byte [ebp + eax - 0x804]
cmp edx, ecx
jne 0x40a4ef
jmp 0x40a435
jmp 0x40a4f6
push edi
push ebx
add esp, 4
sub edi, 0x10d96
add edi, 0x97b9
pop edi
push ebx
call fcn.0040a518
add byte [edi], bh
inc ebx
cmp bh, byte [ebx]
inc ecx
dec eax
xor eax, 0xc4833a3a
add esp, 4
invalid
jmp 0x40a4ac
add esp, 4
sub ebx, 0xa08e
sub ebx, 0x5232
pop ebx
mov edx, dword [ebp - 0x708]
add edx, dword [ebp - 0x184]
movsx eax, byte [edx]
mov ecx, dword [ebp - 0x184]
movsx edx, byte [ebp + ecx - 0x804]
or eax, 0xfffff7fc
cmp eax, edx
jne 0x40a555
mov dword [ebp - 0xc40], 0
jmp 0x40a5c4
push edx
add edx, 0x12e14
add edx, 0x15fef
call 0x40a571
add byte [eax + 0x3f], dl
dec ecx
dec edx
inc eax
inc ecx
push eax
dec eax
add esp, 4
pop edx
push edi
push eax
add esp, 4
or edi, 0x14c7c
sub edi, 0x1903
pop edi
mov eax, dword [ebp - 0x708]
add eax, dword [ebp - 0x184]
movsx ecx, byte [eax]
or ecx, 0x20
mov edx, dword [ebp - 0x184]
movsx eax, byte [ebp + edx - 0x804]
or eax, 0x20
cmp ecx, eax
jge 0x40a5ba
mov dword [ebp - 0xc40], 0xffffffff
jmp 0x40a5c4
mov dword [ebp - 0xc40], 1
cmp dword [ebp - 0xc40], 0
jne 0x40a5db
mov ecx, dword [ebp - 0x18cc]
mov dword [ebp - 0x4e0], ecx
jmp 0x40a5ec
jmp 0x40a3c5
mov edx, dword [ebp - 0x70c]
mov dword [ebp - 0x4e0], edx
mov eax, dword [ebp - 0x4e0]
mov dword [ebp - 0x738], eax
Function at 0x40a889
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
cmp eax, 0xf6814b3b
inc eax
outsd dx, dword [esi]
add byte [eax], al
add esi, 0x7273
pop esi
cmp dword [ebp - 0x150c], 0
jne 0x40a868
mov dword [ebp - 0x2a8], 0
jmp 0x40ab0f
mov ecx, dword [ebp - 0x150c]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0xc4c], eax
push ecx
call 0x40a889
add byte [ecx + 0x40], al
inc edx
dec ebp
dec ecx
inc esp
inc ebp
add esp, 4
or ecx, 0x16bd4
pop ecx
push eax
call 0x40a8a2
add byte [ebx + 0x48], al
cmp eax, 0x334b4b35
cmp al, 0x83
les eax, [ecx + eax*4]
call fcn.0041540d
pop eax
cmp dword [ebp - 0xc4c], 0
jne 0x40a8c4
mov dword [ebp - 0x2a8], 0
jmp 0x40ab0f
mov ecx, dword [ebp - 0xc4c]
mov dword [ebp - 0x4e4], ecx

Function at 0x40a8a2
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
cmp eax, 0xf6814b3b
inc eax
outsd dx, dword [esi]
add byte [eax], al
add esi, 0x7273
pop esi
cmp dword [ebp - 0x150c], 0
jne 0x40a868
mov dword [ebp - 0x2a8], 0
jmp 0x40ab0f
mov ecx, dword [ebp - 0x150c]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0xc4c], eax
push ecx
call 0x40a889
add byte [ecx + 0x40], al
inc edx
dec ebp
dec ecx
inc esp
inc ebp
add esp, 4
or ecx, 0x16bd4
pop ecx
push eax
call 0x40a8a2
add byte [ebx + 0x48], al
cmp eax, 0x334b4b35
cmp al, 0x83
les eax, [ecx + eax*4]
call fcn.0041540d
pop eax
cmp dword [ebp - 0xc4c], 0
jne 0x40a8c4
mov dword [ebp - 0x2a8], 0
jmp 0x40ab0f
mov ecx, dword [ebp - 0xc4c]
mov dword [ebp - 0x4e4], ecx
Function at 0x40af53
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push eax
push edi
add esp, 4
jmp 0x40ad5b
jmp 0x40ad61
sub eax, 0x4916
xor eax, 0x1411e
pop eax
push esi
push ebx
add esp, 4
sub esi, 0x17645
add esi, 0xb9e5
pop esi
lea eax, [ebp - 0x16e8]
mov dword [ebp - 0xc54], eax
mov ecx, dword [ebp - 0x4e8]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0xc50], edx
xor eax, eax
mov word [ebp - 0x208], ax
xor ecx, ecx
mov word [ebp - 0x3c], cx
push edi
jmp 0x40adb3
pop edi
push edi
jmp 0x40adbb
sub edi, 0xf041
sub edi, 0x8ce4
add edi, 0x2792
pop edi
push ebx
or ebx, 0x3de6
add ebx, 0x104f7
pop ebx
mov edx, dword [ebp - 0xc50]
mov ax, word [edx]
mov word [ebp - 0xf8e], ax
mov ecx, dword [ebp - 0xc50]
add ecx, 2
mov dword [ebp - 0xc50], ecx
mov dx, word [ebp - 0xf8e]
mov word [ebp - 0x208], dx
mov eax, dword [ebp - 0xc54]
mov cx, word [eax]
mov word [ebp - 0xf90], cx
mov edx, dword [ebp - 0xc54]
add edx, 2
mov dword [ebp - 0xc54], edx
mov ax, word [ebp - 0xf90]
mov word [ebp - 0x3c], ax
push ecx
push eax
add esp, 4
sub ecx, 0x404e
and ecx, 0x10f2c
sub ecx, 0x15a91
pop ecx
push eax
or eax, 0x6407
xor eax, 0xe9b9
xor eax, 0x982b
or eax, 0xc236
pop eax
movzx ecx, word [ebp - 0x3c]
test ecx, ecx
jne 0x40ae82
movzx edx, word [ebp - 0x208]
movzx eax, word [ebp - 0x3c]
sub edx, eax
mov dword [ebp - 0x1560], edx
jmp 0x40aedc
movzx ecx, word [ebp - 0x208]
movzx edx, word [ebp - 0x3c]
cmp ecx, edx
je 0x40adaa
movzx eax, word [ebp - 0x208]
xor eax, 0x20
movzx ecx, word [ebp - 0x3c]
cmp eax, ecx
je 0x40adaa
movzx edx, word [ebp - 0x208]
movzx eax, word [ebp - 0x3c]
cmp edx, eax
jge 0x40aec6
mov dword [ebp - 0x151c], 0xffffffff
jmp 0x40aed0
mov dword [ebp - 0x151c], 1
mov ecx, dword [ebp - 0x151c]
mov dword [ebp - 0x1560], ecx
cmp dword [ebp - 0x1560], 0
jne 0x40af25
push ebx
push edx
add esp, 4
jmp 0x40aeef
and ebx, 0x109c1
sub ebx, 0x5851
jmp 0x40af00
pop ebx
push edi
sub edi, 0x10089
pop edi
push ecx
push eax
add esp, 4
jmp 0x40af16
pop ecx
mov edx, dword [ebp - 0x4e8]
mov dword [ebp - 0x710], edx
jmp 0x40af8d
push ecx
push ebx
add esp, 4
and ecx, 0x8d40
pop ecx
push eax
add eax, 0x11b48
and eax, 0x44bb
xor eax, 0xf769
imul esi, edi, 0xae80000
add byte [eax], al
add byte [eax], al
push eax
dec ecx
cmp dword [ebx + 0x37], eax
inc ebp
inc esi
dec edi
add esp, 4
pop eax
mov eax, dword [ebp - 0x4e8]
mov ecx, dword [eax]
mov dword [ebp - 0x4e8], ecx
mov edx, dword [ebp - 0x4e8]
cmp edx, dword [ebp - 0xc58]
je 0x40af83
mov eax, dword [ebp - 0x4e8]
cmp dword [eax + 0x30], 0
jne 0x40ad4e
mov dword [ebp - 0x710], 0
Function at 0x40b534
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x40b56d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040fc6c
jmp 0x40b576
mov eax, ebx
mov edx, esi
call fcn.0040fbd0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b580
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x40b5a1
mov al, byte [esp]
jmp 0x40b5a3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bc28
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40baa0
mov eax, dword [0x44f214]
cmp byte [eax], 0
je 0x40bc95
mov eax, dword [0x44f21c]
call fcn.0040ed78
call fcn.0040eca0
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040a98c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40bcdc
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x40bccb
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x44f118]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x44f360]
call fcn.00410384
push eax
call sub.USER32.DLL_LoadStringA
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.USER32.DLL_MessageBoxA
add esp, 0x444
ret

Function at 0x40c65c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c6c0
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040fdc0
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.0040a7e8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c6c7
lea eax, [ebp - 0xc]
call fcn.0040fb7c
ret
Function at 0x40f1d4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x441590]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40f26c
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x40f24c
xor eax, eax
push ebp
push 0x40f245
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40f288
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f24c
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x441590]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x441590], ax
mov esp, ebp
pop ebp
ret

Function at 0x40fa00
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x44f3c0], 0
je 0x40fa61
cmp word [0x44f594], 0xd7b2
jne 0x40fa29
cmp dword [0x44f59c], 0
jbe 0x40fa29
mov eax, 0x44f590
call dword [0x44f5ac]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40fa88
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x44159c], 0
jne 0x40fa7d
push 0
push 0x4415f0
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x410578
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4107a8
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x4105fb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4107a8
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x4105fb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4107c4
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x410684
xor eax, eax
push ebp
push 0x41067d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004103c0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x410662
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4107e4
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x410662
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410684
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x41079e
cmp byte [ebp - 0xd], 0
jne 0x4106cb
cmp byte [ebp - 0x12], 0
je 0x41079e
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4106e4
dec ebx
cmp byte [ebx], 0x2e
je 0x4106f3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4106e3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x41079e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x410730
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x41079e
cmp byte [ebp - 0xd], 0
je 0x41079e
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x41079e
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411a10
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x413398
call fcn.00414400
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x4133b4
test bl, 1
je 0x4133b4
call fcn.00417cd0
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x413500
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.00413f9c
test byte [ebp + 0xd], 0xc0
jne 0x413524
mov eax, dword [0x44235c]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x413531
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x41355e
je 0x413570
sub ecx, 0x100
je 0x41357e
sub ecx, 0x100
je 0x413585
sub ecx, 0x100
je 0x413577
jmp 0x41358c
sub ecx, 0x600
je 0x413585
sub ecx, 0x100
je 0x413570
jmp 0x41358c
mov edi, 1
jmp 0x413591
mov edi, 2
jmp 0x413591
mov edi, 4
jmp 0x413591
mov edi, 5
jmp 0x413591
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4135b8
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x441dd4]
test al, 0x80
je 0x4135b1
mov ebx, 0x80
jmp 0x4135ca
mov ebx, 1
jmp 0x4135ca
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4135ca
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x4135dc
je 0x4135e5
dec eax
je 0x4135ee
jmp 0x4135f7
mov dword [ebp - 4], SysStringLen
jmp 0x413606
mov dword [ebp - 4], 0x40000000
jmp 0x413606
mov dword [ebp - 4], 0xc0000000
jmp 0x413606
push 1
call fcn.00414394
pop ecx
mov ebx, eax
jmp 0x4136f6
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x413622
sub eax, 0x10
je 0x413629
sub eax, 0x10
je 0x413632
sub eax, 0x10
je 0x41363b
jmp 0x41363b
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x413642
mov dword [ebp - 8], 1
jmp 0x413642
mov dword [ebp - 8], 2
jmp 0x413642
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x4136af
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4136a4
test byte [ebp + 0xd], 1
je 0x41369f
mov ebx, 0x50
jmp 0x4136a4
mov ebx, 2
push ebx
call fcn.00414394
pop ecx
mov ebx, eax
jmp 0x4136f6
mov edi, esi
push edi
call fcn.00413464
pop ecx
test eax, eax
je 0x4136c3
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x4136cf
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004140bc
add esp, 8
mov ebx, eax
inc eax
jne 0x4136f6
push 4
call fcn.00414394
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.00413fd0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417c68
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x417cca
call fcn.00417c18
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00412284
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00412284
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x417d48
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4431f4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x417e22
cmp dword [0x4431f0], 0
jne 0x417e22
cmp dword [0x443310], 0
je 0x417ddc
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00417b18
add esp, 8
mov ebx, eax
test eax, eax
jne 0x417dc2
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00417b18
add esp, 8
mov ebx, eax
test eax, eax
jne 0x417dc2
lea ebx, [ebp - 0x84]
jmp 0x417dc3
inc ebx
call fcn.00417d04
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x417e5d
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4431f8
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00412284
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4431fb
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x417e5d
cmp dword [0x4431f0], 0
je 0x417e3c
cmp dword [0x4431f0], 0xffffffff
je 0x417e5d
push esi
call dword [0x4431f0]
pop ecx
mov eax, dword [0x4431f4]
test eax, eax
je 0x417e5d
cmp dword [0x4431f4], 0xffffffff
je 0x417e5d
cmp byte [eax], 0
je 0x417e5d
push esi
push eax
call fcn.00417c68
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418960
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [ebp - 8], 1
mov dword [ebp - 4], esi
cmp edi, 1
jne 0x4189e6
mov eax, dword [0x450318]
inc dword [0x450318]
test eax, eax
jne 0x4189e6
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4502e4], eax
mov edx, dword [ebp + 0x10]
mov dword [0x43d087], edx
mov ecx, dword [esi + 0x44]
push ecx
call fcn.00413b20
pop ecx
cmp dword [0x443258], 0
je 0x4189d1
call fcn.004187e4
mov ebx, eax
test eax, eax
je 0x4189d1
mov edx, dword [ebx]
cmp dword [ebx + edx*4 + 4], 0xffffffff
je 0x4189d1
mov ecx, dword [ebx]
inc dword [ebx]
mov dword [ebx + ecx*4 + 4], esi
jmp 0x4189e6
xor eax, eax
lea edx, [ebp - 8]
push 0
push edx
mov dword [0x443258], eax
call fcn.004187ec
add esp, 8
mov ecx, dword [ebp + 0x18]
push ecx
push edi
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [esi + 0x18]
push edx
call fcn.00418af4
mov ebx, eax
test edi, edi
jne 0x418a55
test edi, edi
jne 0x418a26
dec dword [0x450318]
jne 0x418a26
cmp dword [0x4502e4], 0
je 0x418a26
mov eax, dword [0x4502e4]
push eax
call sub.KERNEL32.DLL_FreeEnvironmentStringsA
xor edx, edx
mov dword [0x4502e4], edx
cmp dword [0x450318], 0
jne 0x418a55
cmp dword [0x443258], 0
jne 0x418a55
cmp dword [0x443248], 0
je 0x418a47
call dword [0x443248]
push 1
lea ecx, [ebp - 8]
push ecx
call fcn.004187ec
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x41af9c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 4], eax
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 8], eax
jmp 0x41afc4
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 4]
cmp edx, dword [ebp + 8]
jb 0x41afbc
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 4]
pop ecx
pop ecx
pop ebp
ret