joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d430
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44dc0d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x45b008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [edi + 0x98]
call fcn.0041daa0
lea ecx, [edi + 0x18]
call fcn.00408ba0
lea ecx, [edi + 0x24]
call fcn.00408d10
lea ecx, [edi + 0x30]
call fcn.00408d10
push dword [ebp + 8]
lea ecx, [edi + 0x44]
mov word [edi + 0x14], 0
call fcn.00409a20
push dword [ebp + 0xc]
lea edx, [edi + 0x44]
lea ecx, [ebp - 0x18]
call fcn.00409810
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00408a70
push eax
lea ecx, [edi + 0x60]
call fcn.0040c730
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
mov bl, al
call fcn.00408a20
test bl, bl
jne 0x41d4e1
call fcn.0040d370
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41ec90
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e93c
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x45b008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x10]
call fcn.0040eae0
lea ecx, [esi + 0x18]
mov dword [esi], 0x4561d4
mov dword [esi + 4], 0x4561e8
mov dword [esi + 8], 0x45620c
mov dword [esi + 0xc], 0x4561c0
mov byte [esi + 0x14], 0
call fcn.00408c60
lea ecx, [esi + 0x24]
mov dword [ebp - 4], 0
call fcn.00408d20
lea ecx, [esi + 0x30]
call fcn.00408d20
mov byte [ebp - 4], 2
lea ecx, [esi + 0x44]
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
call fcn.00409860
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 3
call fcn.00409860
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 4
call fcn.0040bab0
lea ecx, [esi + 0x98]
call fcn.0041dac0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41f0d0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ea0a
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x45b008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0040eae0
lea ecx, [esi + 4]
mov dword [ebp - 4], 0
call fcn.0040eae0
lea ecx, [esi + 8]
call fcn.0040eae0
lea ecx, [esi + 0xc]
call fcn.0040eae0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x18]
mov dword [esi + 0x11], 0
mov word [esi + 0x15], 0
mov byte [esi + 0x17], 0
call fcn.00409860
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 4
call fcn.00409860
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 5
call fcn.00409860
lea ecx, [esi + 0x44]
mov byte [ebp - 4], 6
call fcn.0041eed0
lea ecx, [esi + 0x78]
call fcn.0041f040
lea ecx, [esi + 0xa8]
mov byte [ebp - 4], 7
call fcn.0041f040
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x421020
Capabilities:
Access peb ldr_data
Get process heap flags
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ed4a
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x45b008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.0041e2c0
lea eax, [esi + 4]
mov dword [ebp - 4], 0
lea ecx, [edi + 4]
push eax
call fcn.0041e2c0
lea eax, [esi + 8]
lea ecx, [edi + 8]
push eax
call fcn.0041e2c0
lea eax, [esi + 0xc]
lea ecx, [edi + 0xc]
push eax
call fcn.0041e2c0
mov byte [ebp - 4], 3
lea ecx, [edi + 0x18]
movzx eax, byte [esi + 0x10]
mov byte [edi + 0x10], al
movzx eax, byte [esi + 0x11]
mov byte [edi + 0x11], al
movzx eax, byte [esi + 0x12]
mov byte [edi + 0x12], al
movzx eax, byte [esi + 0x13]
mov byte [edi + 0x13], al
movzx eax, byte [esi + 0x14]
mov byte [edi + 0x14], al
movzx eax, byte [esi + 0x15]
mov byte [edi + 0x15], al
movzx eax, byte [esi + 0x16]
mov byte [edi + 0x16], al
movzx eax, byte [esi + 0x17]
mov byte [edi + 0x17], al
lea eax, [esi + 0x18]
push eax
call fcn.00409990
lea eax, [esi + 0x24]
mov byte [ebp - 4], 4
lea ecx, [edi + 0x24]
push eax
call fcn.00409990
lea eax, [esi + 0x30]
mov byte [ebp - 4], 5
lea ecx, [edi + 0x30]
push eax
call fcn.00409990
mov byte [ebp - 4], 6
mov eax, dword [esi + 0x3c]
mov dword [edi + 0x3c], eax
mov eax, dword [esi + 0x40]
mov dword [edi + 0x40], eax
movq xmm0, qword [esi + 0x44]
movq qword [edi + 0x44], xmm0
mov eax, dword [esi + 0x4c]
mov dword [edi + 0x4c], eax
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], ecx
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0x5c]
mov dword [edi + 0x58], eax
mov dword [edi + 0x5c], ecx
movzx eax, byte [esi + 0x60]
mov byte [edi + 0x60], al
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x6c]
mov dword [edi + 0x68], eax
mov dword [edi + 0x6c], ecx
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x74]
mov dword [edi + 0x70], eax
mov dword [edi + 0x74], ecx
lea eax, [esi + 0x78]
lea ecx, [edi + 0x78]
push eax
call fcn.00421190
lea eax, [esi + 0xa8]
mov byte [ebp - 4], 7
push eax
lea ecx, [edi + 0xa8]
call fcn.00421190
mov eax, dword [esi + 0xd8]
mov ecx, dword [esi + 0xdc]
mov dword [edi + 0xd8], eax
mov eax, edi
mov dword [edi + 0xdc], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x422410
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44eeb3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x45b008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00408c60
lea ecx, [esi + 0xc]
mov dword [ebp - 4], 0
call fcn.00408c60
mov byte [ebp - 4], 1
lea ecx, [esi + 0x24]
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov word [esi + 0x20], 0
call fcn.00409860
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.0041f040
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x422640
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44eefe
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x45b008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
call fcn.004227c0
mov dword [ebp - 4], 0
lea ecx, [edi + 0xc]
mov dword [edi], 0x4562b4
mov dword [edi + 8], 0
call fcn.00409860
lea ecx, [edi + 0x30]
call fcn.004227f0
lea ecx, [edi + 0x44]
call fcn.00415a60
lea ecx, [edi + 0x48]
mov byte [ebp - 4], 2
call fcn.004225f0
mov byte [ebp - 4], 3
push ecx
lea ecx, [edi + 0x44]
mov dword [edi + 0x78], 0xffffffff
mov dword [edi + 0x40], 0
call fcn.004224e0
test eax, eax
jne 0x4226db
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
push 0x4592f4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x145ecb
push eax
call fcn.004429ca
int3
Function at 0x423890
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x45b008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov dword [ebp - 0x84], 0x420041
xor edx, edx
mov dword [ebp - 0x80], 0x440043
mov dword [ebp - 0x7c], 0x460045
mov dword [ebp - 0x78], 0x480047
mov dword [ebp - 0x74], 0x4a0049
mov dword [ebp - 0x70], 0x4c004b
mov dword [ebp - 0x6c], 0x4e004d
mov dword [ebp - 0x68], 0x50004f
mov dword [ebp - 0x64], 0x520051
mov dword [ebp - 0x60], 0x540053
mov dword [ebp - 0x5c], 0x560055
mov dword [ebp - 0x58], 0x580057
mov dword [ebp - 0x54], 0x5a0059
mov dword [ebp - 0x50], 0x620061
mov dword [ebp - 0x4c], 0x640063
mov dword [ebp - 0x48], 0x660065
mov dword [ebp - 0x44], 0x680067
mov dword [ebp - 0x40], 0x6a0069
mov dword [ebp - 0x3c], 0x6c006b
mov dword [ebp - 0x38], 0x6e006d
mov dword [ebp - 0x34], 0x70006f
mov dword [ebp - 0x30], 0x720071
mov dword [ebp - 0x2c], 0x740073
mov dword [ebp - 0x28], 0x760075
mov dword [ebp - 0x24], 0x780077
mov dword [ebp - 0x20], 0x7a0079
mov dword [ebp - 0x1c], 0x310030
mov dword [ebp - 0x18], 0x330032
mov dword [ebp - 0x14], 0x350034
mov dword [ebp - 0x10], 0x370036
mov dword [ebp - 0xc], 0x390038
mov dword [ebp - 8], 0x2f002b
test esi, esi
jle 0x4239cd
nop dword [eax]
movzx ecx, word [edi + edx*2]
xor eax, eax
cmp word [ebp + eax*2 - 0x84], cx
je 0x4239c8
inc eax
cmp eax, 0x40
jb 0x4239a6
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00441023
mov esp, ebp
pop ebp
ret
inc edx
cmp edx, esi
jl 0x4239a0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00441023
mov esp, ebp
pop ebp
ret

Function at 0x423a20
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push ecx
mov esi, edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x423a53
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x423a53
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
add eax, edi
mov dword [esi], eax
mov al, 1
adc ecx, 0
pop edi
mov dword [esi + 4], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x423c20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x45b008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, edx
push 0
push eax
mov ebx, ecx
call fcn.00442a40
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x423cc3
mov edx, edi
mov ecx, esi
call fcn.00423a20
push dword [edi]
mov dword [ebp - 0x210], 0
call fcn.00441197
add esp, 4
mov dword [ebx], eax
lea ecx, [ebp - 0x210]
push 0
push ecx
push dword [edi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441023
mov esp, ebp
pop ebp
ret
Function at 0x403414
Capabilities:
Encode data using xor

Disassembly:
and eax, 0xf3e66b7c
or eax, ecx
and eax, 0xffff
mov ecx, eax
add ecx, 0
jne 0x4033b0
mov edi, 0x7827b4f0
xor edi, 0x164dfef9
push edi
mov eax, 0x64400000
mov ecx, 0xa2a4a09
xor eax, ecx
pop ebx
xor eax, ebx
push 0x4b53c4b2
mov esi, 0x4b53c4b2
pop ecx
xor esi, ecx
push 0x3e77bb4
mov edi, 0x3e77bb4
pop ecx
xor edi, ecx
xor esi, edi
xor eax, esi
mov edx, eax
add esp, 0xfffffffc
mov dword [esp], edx
pop edi
cmp edi, 0
add byte [eax], al
add byte [edi], cl
invalid
xchg edx, eax
add byte [eax], al
invalid
add byte [eax], al
add byte [edi], cl
test dword [edx - 0x42000000], edx
loope 0x403356
mov esi, 0x517996e1
jns 0x403413
xor esi, 0x3957ab2b
mov eax, 0x3d185d30
xor esi, eax
mov eax, esi
push eax
push 0x11ac8125
mov ecx, 0xe5cddc6
pop ebx
xor ecx, ebx
push ecx
mov edx, 0x4310c008
mov ecx, 0x290380
xor edx, ecx
pop esi
xor edx, esi
pop edi
xor edx, edi
mov ebx, 0x418c582e
mov ecx, 0x418c582e
xor ecx, ebx
xor ecx, edx
add esp, 0xfffffffc
mov dword [esp], ecx
or al, 0x24
pop esi
mov edx, 1
mov eax, 0
xor edx, eax
mov ebx, 0x1ebe7751
mov edi, 0x1ebe7751
xor edi, ebx
xor edx, edi
cli
sub esi, edx
and esi, 0x7fffffff
add esp, 0xfffffffc
xor edx, edx
add edx, esp
mov edi, edx
mov dword [edi], esi
mov eax, esi
mov edx, eax
add esp, 0xfffffffc
mov ecx, esp
mov dword [ecx], edx
pop edi
or edi, edi
jne 0x403406
pop edi
pop ebx
jmp 0x40372c

Function at 0x40520c
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 pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405245
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40524e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406c2c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406cba
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406c77
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403278
jmp 0x406ca4
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406c8b
lea eax, [ebp - 4]
call fcn.00403198
jmp 0x406c9a
lea edx, [ebp - 4]
call fcn.00406af0
test ebx, ebx
je 0x406c9a
dec ebx
jmp 0x406c7c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406cc1
lea eax, [ebp - 4]
call fcn.00403198
ret
Function at 0x406e10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x406f48
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x406f32
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x406e6d
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x406f32
cmp dword [ebp - 0x10], 0
jne 0x406e82
mov eax, dword [ebp - 8]
call fcn.00403198
mov bl, 1
jmp 0x406f32
cmp dword [ebp - 0x10], 0x70000000
jb 0x406e90
call fcn.00405884
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
lea eax, [ebp - 0x14]
mov ecx, esi
xor edx, edx
call fcn.00403278
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
call fcn.00403420
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
cmp eax, 0xea
je 0x406e36
test eax, eax
jne 0x406f32
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x406ee0
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x406f32
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
jmp 0x406eeb
dec esi
test esi, esi
je 0x406ef9
mov eax, dword [ebp - 0x14]
cmp byte [eax + esi - 1], 0
je 0x406eea
cmp dword [ebp - 0xc], 7
jne 0x406f04
test esi, esi
je 0x406f04
inc esi
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.004034f0
cmp dword [ebp - 0xc], 7
jne 0x406f25
test esi, esi
je 0x406f25
lea eax, [ebp - 0x14]
call fcn.00403420
mov byte [eax + esi - 1], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.004031e8
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406f4f
lea eax, [ebp - 0x14]
call fcn.00403198
ret

Function at 0x407890
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40c55c
mov eax, esi
mov edx, 8
test al, 1
je 0x4078ac
shr eax, 1
xor eax, 0xedb88320
jmp 0x4078ae
shr eax, 1
dec edx
jne 0x40789f
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x407898
pop esi
ret

Function at 0x4078db
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40c558], 0
jne 0x4078e7
call fcn.00407890
push 1
push 0x40c558
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x407912
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40c55c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4078ed
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x401fea
Capabilities:
Access peb ldr_data
Create thread
Get kernel32 base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
sub cx, 0x1f9
mul edi
dec cx
mul di
mul ebx
sub ax, 0x22b
or edi, ebx
shr cx, 2
rcl eax, 0x6e
rol ax, 0x19
rcl cx, 0xcb
mul si
mov si, 0x1b0
rcr esi, 0xed
inc si
dec dx
movsx ebx, dh
movsx ecx, si
rcl cx, 0x33
mov edx, esi
shr ax, 0xb9
dec cx
ja 0x402046
test edx, 0x43
ja 0x402067
dec bx
imul eax
jmp 0x402056
rol bx, 0x64
sub di, cx
ror esi, 0x18
ror ecx, 0xef
movsx ebx, bx
rcl eax, 0x5b
mul esi
jae 0x402067
inc ax
movsx ecx, si
rcr ebx, 0x8e
jmp 0x402082
and ecx, 0x33b
ror edx, 0x56
rcr di, 0xc6
or esi, 0x389
movzx edi, al
movsx edi, si
imul edx
mul cx
ror ax, 0x4e
sub ebx, 0xb9
rcl cx, 0x60
jb 0x4020a1
imul si
mul eax
inc esi
xor bx, dx
inc ebx
jmp 0x4020b3
mul eax
add eax, edi
mov ax, 0x2a4
mul ebx
ror edi, 0xfc
xor di, 0xdb
movsx ecx, bh
dec bx
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [section..bss], eax
push 0x27
mov esi, 0x443940
mov edx, 0x547
push 0x42bb10
mov ecx, esi
call fcn.00401ac2
pop ecx
pop ecx
mov edx, 0x8aafdc01
call fcn.00401eda
lea ecx, [ebp - 4]
push ecx
push 0x40
push 0x4e4
push esi
call eax
test eax, eax
je 0x402182
push 4
call fcn.00405212
pop ecx
lea ecx, [ebp - 8]
xor esi, esi
push ecx
push esi
push eax
push 0x402c5b
push esi
push esi
mov dword [eax], 0x401f88
call fcn.00409ebb
add esp, 0x18
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40217b
cmp dword [ebp - 8], esi
je 0x40218b
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [ebp - 8], eax
jne 0x402146
push 5
jmp 0x40218d
push esi
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.00404c78
add esp, 0xc
test eax, eax
je 0x40215d
push 2
jmp 0x40218d
xorps xmm0, xmm0
push 1
movlpd qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp - 8], esi
jne 0x402192
jmp 0x402182
mov dword [ebp - 8], esi
push 6
jmp 0x40218d
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
push 1
call fcn.00403002
call fcn.0040bd02
int3

Function at 0x4060de
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40611d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40611d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40611d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40611d
cmp dword [ecx + 0x74], 0xe
jbe 0x40611d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x411e51
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4249f4
push 0x4249ec
push str.FlsAlloc
push 0x1e
call fcn.00411cfa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411e85
push dword [ebp + 8]
mov ecx, esi
call dword [0x421158]
call esi
jmp 0x411e8b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x415fd6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00406250
mov eax, dword [0x42b080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00413af0
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x416018
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x416174
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00420020
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x445010]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004163fc
mov ecx, dword [esi*4 + 0x445010]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41616d
cmp eax, dword [edi + ecx + 0x24]
jne 0x41616d
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41616d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004163fc
add esp, 0x14
test edx, edx
jl 0x41616d
jg 0x4160e3
test eax, eax
jb 0x41616d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41616d
jl 0x4160fd
cmp dword [ebp - 0x1008], eax
ja 0x41616d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41611b
test ebx, ebx
je 0x416154
cmp ecx, edi
jae 0x416154
mov al, byte [ecx]
cmp al, 0xd
jne 0x416135
lea eax, [edi - 1]
cmp ecx, eax
jae 0x416141
cmp byte [ecx + 1], 0xa
jne 0x416141
inc ecx
jmp 0x416141
movzx eax, al
movsx eax, byte [eax + 0x42ba00]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41611b
cmp edx, ebx
jne 0x41611b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x416172
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00405204
leave
ret
Function at 0x41ce13
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x445010]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ce53
cmp byte [ebx], 0xa
jne 0x41ce53
or byte [eax + edi + 0x28], 4
jmp 0x41ce58
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41cf56
mov al, byte [edx]
cmp al, 0x1a
je 0x41cf38
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41ce87
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41ceac
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41ceb6
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41ce69
jmp 0x41cf56
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41cf33
cmp dword [ebp - 0xc], 0
je 0x41cf33
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x445010]
test byte [eax + edi + 0x28], 0x48
je 0x41cf0d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41cef8
mov byte [esi], dl
jmp 0x41cf09
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x445010]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41cf56
cmp byte [ebp - 1], 0xa
jne 0x41cf1c
cmp esi, ebx
jne 0x41cf1c
mov byte [esi], 0xa
jmp 0x41cf55
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041641a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41cf56
mov byte [esi], 0xd
jmp 0x41cf55
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x445010]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41cf52
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41cf56
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret