joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ffff0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x622018
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x6aab00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ebx, ebx
push 8
mov dword [esi], ebx
call fcn.0044cd98
add esp, 4
cmp eax, ebx
je 0x6000d4
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
lea edi, [esi + 0x18]
push 8
mov dword [ebp - 4], ebx
mov dword [edi], ebx
call fcn.0044cd98
add esp, 4
cmp eax, ebx
je 0x6000b0
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov eax, 0xf
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov word [esi + 0x7c], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], ebx
call fcn.0054dd51
push 0x69c03c
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], vtable.std::bad_alloc.0
call fcn.00551b4a
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], ebx
call fcn.0054dd51
push 0x69c03c
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x30], vtable.std::bad_alloc.0
call fcn.00551b4a
int3
Function at 0x607450
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x6aab00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov dword [ebx], edx
mov edx, dword [eax + 4]
mov dword [ebx + 4], edx
mov edx, dword [eax]
mov dword [ebx + 8], edx
mov eax, dword [eax + 4]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
cmp eax, 1
jae 0x60749d
push 0x69ba50
lea ecx, [ebp - 0x40]
push ecx
mov dword [ebp - 0x40], str.Incorrect_key_length
call fcn.00551b4a
cmp eax, 0x38
jbe 0x6074ac
mov dword [ebp + 0xc], 0x38
mov eax, dword [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x3c]
push edx
call fcn.005544a0
push 0x1000
lea eax, [ebx + 0x58]
push 0x662968
lea edi, [ebx + 0x10]
mov ecx, 0x12
mov esi, 0x662920
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.005544a0
lea edx, [ebx + 0x10]
add esp, 0x18
lea ecx, [ebp - 0x3c]
xor eax, eax
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], 0x12
mov edi, edi
xor edx, edx
mov esi, 4
movzx edi, byte [ecx]
shl edx, 8
inc eax
dec esi
or edx, edi
inc ecx
cmp eax, dword [ebp + 0xc]
jne 0x60750c
xor eax, eax
lea ecx, [ebp - 0x3c]
test esi, esi
jne 0x6074f7
mov esi, dword [ebp - 0x44]
xor dword [esi], edx
add esi, 4
dec dword [ebp - 0x40]
mov dword [ebp - 0x44], esi
jne 0x6074f0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
xor edi, edi
lea esi, [ebx + 0x10]
lea eax, [ebp - 0x4c]
push eax
mov ecx, ebx
call fcn.00606550
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x48]
mov dword [esi], ecx
mov dword [esi + 4], edx
add edi, 2
add esi, 8
cmp edi, 0x12
jb 0x607533
lea eax, [ebx + 0x58]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 4
mov esi, dword [ebp - 0x44]
xor edi, edi
lea eax, [ebp - 0x4c]
push eax
mov ecx, ebx
call fcn.00606550
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x48]
mov dword [esi], ecx
mov dword [esi + 4], edx
add edi, 2
add esi, 8
cmp edi, 0x100
jl 0x607566
add dword [ebp - 0x44], 0x400
dec dword [ebp - 0x40]
jne 0x607561
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0054cec4
mov esp, ebp
pop ebp
ret 0xc

Function at 0x609280
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x6b9340]
test eax, eax
je 0x609308
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call esi
test eax, eax
je 0x609307
mov ecx, dword [0x6b9340]
test ecx, ecx
jne 0x6092a6
xor eax, eax
jmp 0x6092af
push ecx
call esi
mov ecx, dword [0x6b9340]
cmp byte [eax + 0x18], 0
je 0x609307
test ecx, ecx
je 0x609307
push ecx
call esi
test eax, eax
je 0x609307
mov eax, dword [0x6b9340]
test eax, eax
je 0x6092cc
push eax
call esi
mov eax, dword [eax + 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x609307
mov eax, dword [0x6b9340]
test eax, eax
je 0x6092e8
push eax
call esi
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x69bce8
lea ecx, [esp + 0xb]
xor al, al
push ecx
mov byte [esp + 0xf], al
call fcn.00551b4a
pop esi
pop ecx
ret
Function at 0x6096c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x622c00
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6aab00]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x6b9340]
test eax, eax
jne 0x6096f4
xor esi, esi
jmp 0x6096fd
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x30], 0
test esi, esi
je 0x609747
cmp dword [esi + 0x14], 0
jne 0x609789
cmp dword [esi + 0x10], 0
jne 0x609790
push 0x609080
push 0x6b9338
call fcn.00609310
mov eax, dword [0x6b9340]
add esp, 8
test eax, eax
je 0x60983d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x30], 0xffffffff
test esi, esi
je 0x609775
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x609775
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
cmp dword [esi + 0x10], 0
je 0x6097d0
nop
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x6097be
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x609790
cmp dword [esi + 0x14], 0
je 0x609719
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x6097f5
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x609826
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x609826
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x609826
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x6097da
jmp 0x609713
lea ecx, [esp + 0x18]
call fcn.0054dcb8
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], vtable.boost::thread_resource_error.0
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x34], 1
call fcn.00422c40
int3
Function at 0x609930
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x622c58
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6aab00]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x609870
push 0
push 0
call fcn.00553bc3
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x60999b
lea ecx, [esp + 0x10]
call fcn.0054dcb8
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], vtable.boost::thread_resource_error.0
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x2c], ebx
call fcn.00422c40
mov eax, dword [edi]
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov esi, dword [edi]
mov eax, dword [esi + 8]
test eax, eax
je 0x6099be
cmp eax, 0xffffffff
je 0x6099be
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
mov edx, dword [edi]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x473467
Capabilities:
Encode data using xor

Disassembly:
pop ecx
inc esp
fiadd dword [ecx]
movsb byte es:[edi], byte [esi]
dec edi
call 0x41278ede
imul ebx, dword [edx - 0x20], 0x40

Function at 0x4aa7f3
Capabilities:
Encode data using xor

Disassembly:
inc esp
cmp dh, 0xd9
jne 0x4aa845
loope 0x4aa84c
not dl
int 0x42
or dh, ch
imul eax, dword [edx - 0x5b], 0xffffffdf
mov byte [0xe0b488c5], al

Function at 0x4ba839
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c33d8
cmp edx, dword [eax]
je 0x4ba85b
add eax, 8
inc ecx
cmp eax, 0x4c3468
jl 0x4ba84c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c33d8]
jne 0x4ba989
mov eax, dword [0x4c7d5c]
cmp eax, 1
je 0x4ba963
test eax, eax
jne 0x4ba88c
cmp dword [0x4c3300], 1
je 0x4ba963
cmp edx, 0xfc
je 0x4ba989
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ba8c3
lea eax, [ebp - 0x1a4]
push 0x4bfa48
push eax
call fcn.004bb220
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bb6b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4ba906
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bb6b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bfa44
push edi
call fcn.004bd580
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4bfa28
push eax
call fcn.004bb220
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bb230
lea eax, [ebp - 0xa0]
push 0x4bfa24
push eax
call fcn.004bb230
push dword [esi + 0x4c33dc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bb230
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4bf9fc
push eax
call fcn.004bd4f4
add esp, 0x2c
pop edi
jmp 0x4ba989
lea eax, [ebp + 8]
lea esi, [esi + 0x4c33dc]
push 0
push eax
push dword [esi]
call fcn.004bb6b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0xc1e0b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00c1e200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xc1e0d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc1e0c2
add dl, dl
jne 0xc1e0e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc1e134
xor eax, eax
add dl, dl
jne 0xc1e0ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc1e1d5
add dl, dl
jne 0xc1e0fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc1e108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc1e113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc1e11e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xc1e12a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xc1e0cd
mov eax, 1
add dl, dl
jne 0xc1e142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc1e14d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc1e139
sub eax, ebx
mov ebx, 1
jne 0xc1e180
mov ecx, 1
add dl, dl
jne 0xc1e166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc1e171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc1e15d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc1e0cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xc1e197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc1e1a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc1e18e
cmp eax, 0x7d00
jae 0xc1e1c5
cmp eax, 0x500
jb 0xc1e1c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc1e0cd
cmp eax, 0x7f
ja 0xc1e1c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc1e0cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xc1e1f6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xc1e0cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401100
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
xor ebx, ebx
push edi
mov dword [esp + 0x14], ebx
call fcn.004088e8
push edi
mov esi, eax
push ebx
push esi
call fcn.0040a210
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
add esp, 0x10
push ebx
push ebx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea ecx, [esp + 0x14]
push ecx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401151
push edi
mov edx, esi
call fcn.00408870
mov ebx, eax
test esi, esi
je 0x40115e
push esi
call fcn.00408b0b
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret 0xc
Function at 0x4011b0
Capabilities:
Check for peb beingdebugged flag
Get file size
Print debug messages
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x41348b
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x419050]
xor eax, esp
mov dword [esp + 0x240], eax
push ebp
push esi
push edi
mov eax, dword [0x419050]
xor eax, esp
push eax
lea eax, [esp + 0x254]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x264]
mov edi, dword [esp + 0x268]
xor eax, eax
mov word [esp + 0x30], ax
mov eax, ebp
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401214
sub eax, edx
sar eax, 1
push eax
mov eax, ebp
lea esi, [esp + 0x30]
call fcn.004015d0
mov eax, edi
mov dword [esp + 0x25c], 0
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401240
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea ecx, [esp + 0x30]
call fcn.004014f0
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x30]
jae 0x40126a
lea eax, [esp + 0x30]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x401354
cmp esi, 0xffffffff
je 0x401354
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push 0
push esi
mov dword [edi + 0x100], ecx
mov dword [edi + 0x104], edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi + 0xf0], eax
test eax, eax
jle 0x40133f
push eax
call fcn.004088e8
mov ecx, dword [edi + 0xf0]
push ecx
push 0
push eax
mov dword [edi + 0xf8], eax
call fcn.0040a210
mov eax, dword [edi + 0xf0]
mov ecx, dword [edi + 0xf8]
add esp, 0x10
push 0
lea edx, [esp + 0x14]
push edx
push eax
push ecx
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40133f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
lea edx, [esp + 0x50]
push str.GetFileInfo_ReadFile__s_errorCode:_d
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x44], 8
jb 0x401368
mov ecx, dword [esp + 0x30]
push ecx
jmp 0x401360
cmp dword [esp + 0x44], 8
jb 0x401368
mov edx, dword [esp + 0x30]
push edx
call fcn.00408b00
add esp, 4
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.004089cf
add esp, 0x250
ret 8
Function at 0x4013a0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x413458
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x419050]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
push edi
mov eax, dword [0x419050]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
xor ecx, ecx
mov word [esp + 0x28], cx
mov ecx, eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4013f4
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x28]
call fcn.004015d0
mov eax, edi
mov dword [esp + 0x4c], 0
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401420
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea ecx, [esp + 0x28]
call fcn.004014f0
cmp dword [esp + 0x3c], 8
mov eax, dword [esp + 0x28]
jae 0x40144a
lea eax, [esp + 0x28]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x4014bc
cmp esi, 0xffffffff
je 0x4014bc
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push 0
push esi
mov dword [edi + 0x100], edx
mov dword [edi + 0x104], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [edi + 0xf0], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x3c], 8
jb 0x4014d0
mov ecx, dword [esp + 0x28]
push ecx
jmp 0x4014c8
cmp dword [esp + 0x3c], 8
jb 0x4014d0
mov edx, dword [esp + 0x28]
push edx
call fcn.00408b00
add esp, 4
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004089cf
add esp, 0x44
ret 8

Function at 0x401b20
Capabilities:
Print debug messages

Disassembly:
cmp dword [eax], 0
je 0x401bae
push esi
push edi
push 0x400
call fcn.004088e8
push 0x400
mov esi, eax
call fcn.004088e8
push 0x400
push 0
push esi
mov edi, eax
call fcn.0040a210
push 0x400
push 0
push edi
call fcn.0040a210
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
push ecx
push edx
push 0xffffffffffffffff
push 0x1ff
push edi
call fcn.00408f39
push edi
push 0x1ff
push esi
call fcn.00408f59
add esp, 0x40
push 0x417478
push 0x1ff
push esi
call fcn.00408f59
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.00408b0b
push edi
call fcn.00408b0b
add esp, 8
pop edi
pop esi
ret
Function at 0x401bb0
Capabilities:
Print debug messages
Query environment variable

Disassembly:
push edi
push str.Check_debug_flag__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
je 0x401c0e
push esi
mov esi, eax
cmp word [eax], di
je 0x401c01
push 0xc
push str.DSM_DEBUGON
push esi
call fcn.00409147
add esp, 0xc
test eax, eax
je 0x401c06
mov eax, esi
cmp word [esi], di
je 0x401bf8
jmp 0x401bf0
add eax, 2
cmp word [eax], di
jne 0x401bf0
cmp word [eax + 2], di
lea esi, [eax + 2]
jne 0x401bd0
pop esi
mov eax, edi
pop edi
ret
pop esi
mov eax, 1
pop edi
ret
mov eax, edi
pop edi
ret
Function at 0x402110
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4134f8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x419050]
xor eax, esp
mov dword [esp + 0x70], eax
push esi
mov eax, dword [0x419050]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x174]
sub ecx, dword [esi + 0x170]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x402167
call fcn.0040964c
mov eax, dword [esi + 0x170]
xor ecx, ecx
push 0xffffffffffffffff
mov word [esp + 0x64], cx
push ecx
lea ecx, [esp + 0x64]
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], 0
call fcn.00401740
push 1
mov eax, 0x4174c4
lea ecx, [esp + 0x60]
mov dword [esp + 0x88], 0
call fcn.004014f0
push 0
add esi, 0x180
push esi
or eax, 0xffffffff
lea esi, [esp + 0x64]
call fcn.00401680
push 0x44
lea edx, [esp + 0x1c]
push 0
push edx
call fcn.0040a210
xor eax, eax
mov esi, 8
add esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x18], 0x44
cmp dword [esp + 0x74], esi
jae 0x4021fe
lea eax, [esp + 0x60]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0x10
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [esp + 0x74], esi
jb 0x402230
mov eax, dword [esp + 0x60]
push eax
call fcn.00408b00
add esp, 4
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004089cf
add esp, 0x80
ret

Function at 0x402250
Capabilities:
Read file on windows

Disassembly:
push ecx
push edi
push 0x100
lea edi, [esi + 4]
push 0
push edi
mov dword [esp + 0x10], 0
call fcn.0040a210
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x158]
add esp, 0xc
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 0x158]
push 0
lea edx, [esp + 8]
push edx
push 0x100
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop edi
pop ecx
ret 4

Function at 0x4022b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [0x419050]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
xor esi, esi
nop
xor eax, eax
push eax
push eax
push esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], eax
call ebx
push 0
lea eax, [esp + 0x10]
push eax
push 0x10
lea ecx, [esp + 0x1c]
push ecx
push edi
call ebp
mov eax, 0x10
xor ecx, ecx
cmp eax, 4
jb 0x40232f
mov edx, dword [esp + ecx + 0x10]
cmp edx, dword [ecx + 0x417440]
jne 0x40231d
sub eax, 4
add ecx, 4
jmp 0x402304
mov eax, dword [esp + 0x28]
add esi, 0x4000
cmp esi, dword [eax + 0x15c]
jl 0x4022d0
mov ecx, dword [esp + 0x20]
lea eax, [esi + 0x10]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004089cf
add esp, 0x18
ret 4