joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408010
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4e0
mov eax, dword [0x4265d4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x4dc], ecx
call fcn.0040220e
cmp dword [ebp - 0x238], 8
mov eax, dword [ebp - 0x24c]
jae 0x408050
lea eax, [ebp - 0x24c]
lea ecx, [ebp - 0x4d4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x4d8], eax
cmp eax, 0xffffffff
jne 0x40808d
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x24c]
call fcn.004013ba
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0040c44c
leave
ret 4
push 0x423844
lea esi, [ebp - 0x284]
call fcn.00401249
push 0x423848
lea esi, [ebp - 0x268]
call fcn.00401249
mov ebx, 0x4281c4
test byte [ebp - 0x4d4], 0x10
je 0x408111
lea eax, [ebp - 0x4a8]
push eax
lea ecx, [ebp - 0x284]
call fcn.00406ed9
test eax, eax
je 0x408196
lea eax, [ebp - 0x4a8]
push eax
lea ecx, [ebp - 0x268]
call fcn.00406ed9
test eax, eax
je 0x408196
lea eax, [ebp - 0x4a8]
push eax
lea esi, [ebp - 0x230]
call fcn.00401249
mov ecx, dword [ebp - 0x4dc]
mov eax, esi
push eax
call fcn.00408010
jmp 0x408187
cmp dword [edi + 0x14], 8
jb 0x40811b
mov eax, dword [edi]
jmp 0x40811d
mov eax, edi
lea ecx, [ebp - 0x4a8]
push ecx
push eax
push 5
push 0x4271b4
call fcn.00407254
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x214]
push eax
lea esi, [ebp - 0x230]
call fcn.00401249
cmp dword [ebp - 0x21c], 8
mov esi, dword [ebp - 0x230]
jae 0x408169
lea esi, [ebp - 0x230]
push 0xb
push 0x4283ec
call fcn.00401dcd
push eax
push 8
push ebx
call fcn.00401d81
push eax
call fcn.00401e13
push esi
call eax
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.004013ba
lea eax, [ebp - 0x4d4]
push eax
push dword [ebp - 0x4d8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4080b2
push 9
push 0x42831c
call fcn.00401dcd
push eax
push 8
push ebx
call fcn.00401d81
push eax
call fcn.00401e13
push dword [ebp - 0x4d8]
call eax
cmp dword [edi + 0x14], 8
jb 0x4081dc
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 1
lea ecx, [ebp - 0x268]
call fcn.004013ba
push 0
push 1
lea ecx, [ebp - 0x284]
call fcn.004013ba
mov bl, 1
jmp 0x40806b
Function at 0x409a0c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x409a17
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x409acb
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4233f0]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4233f0]
movzx ebx, byte [ecx + 2]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4233f0]
movzx ebx, byte [ecx + 3]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4233f0]
movzx ebx, byte [ecx + 4]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4233f0]
movzx ebx, byte [ecx + 5]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4233f0]
movzx ebx, byte [ecx + 6]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4233f0]
movzx ebx, byte [ecx + 7]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4233f0]
add ecx, 8
sub edi, 8
dec esi
jne 0x409a2e
pop ebx
test edi, edi
je 0x409ae4
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x4233f0]
inc ecx
dec edi
jne 0x409acf
pop esi
not eax
pop edi
ret

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

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x4233f0]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x4233f0]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x40a14c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x40a17c
push 0
lea eax, [ebp + 8]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40a177
mov byte [esi + 8], 1
mov eax, dword [ebp + 8]
jmp 0x40a1a4
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x40a18d
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0040f200
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret 0xc
Function at 0x40af2f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebx], 0
push esi
push edi
jne 0x40afd3
cmp dword [ebx + 4], 0xffffffff
jne 0x40afd3
lea esi, [ebx + 0x244]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40af5e
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x242]
cmp eax, 0x5c
je 0x40af96
cmp eax, 0x2f
je 0x40af96
sub esi, 2
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x40af82
mov edi, esi
mov esi, 0x42202c
movsd dword es:[edi], dword [esi]
push 0x20
call fcn.0040cc63
and dword [eax + 0x1c], 0
and dword [eax + 0xc], 0
pop ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp + 0xc]
push eax
mov word [eax], 0x100
mov byte [eax + 0x10], 0
mov dword [eax + 0x18], ecx
call fcn.0040a3c1
mov dword [ebx], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
jmp 0x40afd8
mov eax, 0x1000000
pop edi
pop esi
pop ebp
ret 8

Function at 0x40c44c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4265d4]
jne 0x40c456
repz ret
jmp fcn.00410fd7
Function at 0x41ca33
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4265d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00411c6c
and dword [ebp - 0x14], 0
cmp dword [0x477974], 0
mov dword [ebp - 0x18], eax
jne 0x41cae6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41cb8e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41cb8e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x477974], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x477978], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x47797c], eax
call edi
push eax
call esi
mov dword [0x477984], eax
test eax, eax
je 0x41cae6
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x477980], eax
mov eax, dword [0x477980]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41cb3f
cmp dword [0x477984], ecx
je 0x41cb3f
push eax
call esi
push dword [0x477984]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41cb3f
test ebx, ebx
je 0x41cb3f
call edi
test eax, eax
je 0x41cb36
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41cb36
test byte [ebp - 8], 1
jne 0x41cb3f
or dword [ebp + 0x10], 0x200000
jmp 0x41cb72
mov eax, dword [0x477978]
cmp eax, dword [ebp - 0x18]
je 0x41cb72
push eax
call esi
test eax, eax
je 0x41cb72
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41cb72
mov eax, dword [0x47797c]
cmp eax, dword [ebp - 0x18]
je 0x41cb72
push eax
call esi
test eax, eax
je 0x41cb72
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x477974]
call esi
test eax, eax
je 0x41cb8e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41cb90
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c44c
leave
ret
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

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 0x405258
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 0x405279
mov al, byte [esp]
jmp 0x40527b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x406468
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov ecx, eax
or ecx, edx
je 0x4064b9
or edx, edx
jns 0x406410
neg edx
neg eax
sbb edx, 0
xor ecx, ecx
mov edi, dword [ebp + 8]
or edi, edi
jge 0x40641b
xor edi, edi
cmp edi, 4
jl 0x40643f
mov edi, 4
inc ecx
sub eax, 0xa7640000
sbb edx, 0xde0b6b3
jae 0x406425
dec ecx
add eax, 0xa7640000
adc edx, 0xde0b6b3
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
fild qword [ebp - 0x10]
mov edx, edi
mov eax, 4
sub eax, edx
je 0x40645a
fidiv dword [eax*4 + 0x405d18]
fbstp tbyte [ebp - 0x1a]
lea edi, [ebx + 3]
wait
or ecx, ecx
jne 0x406480
mov ecx, 0x3c8b0009
and al, 0x83
in al, dx
cld
mov eax, dword [esp]
add esp, 4
mov ebx, eax
xor ebx, 0xffffffff
and ebx, 0x34efe2b1
and eax, 0xcb101d4e
or eax, ebx
out dx, eax
xor al, 0x81
loopne 0x4064d3
sbb eax, 0xc30bcb10
mov ebx, dword [esp]
sub esp, 0xfffffffc
mov ecx, ebx
sub esp, 4
mov dword [esp], ecx
add esp, 0xfffffffc
mov ecx, esp
mov dword [ecx], edi
mov ecx, 0x107a
mov edx, 0x404a80
xor ecx, edx
mov edx, dword [ecx]
mov edi, edx
xor edi, eax
mov dword [ebx], edi
add ecx, 4
mov edi, 0xfffffffc
add byte [edi - 4], bh
sub ebx, edi
mov edx, 0x16a9e37f
shr edx, 2
add edx, 0xfa95e89b
xor edx, ecx
cmp edx, 0
jne 0x4064ac
add byte [edi], cl
test edx, edx
invalid
ret

Function at 0x4069dc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406a24
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406978
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a2b
lea eax, [ebp - 4]
call fcn.00403198
ret
Function at 0x409b78
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409c2c
jmp 0x409c21
cmp dword [esi + 0x10], 0x1000
jne 0x409c0d
test byte [esi + 0x15], 1
jne 0x409c0d
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409bcc
cmp eax, 2
je 0x409bcc
cmp eax, 0x10
je 0x409bcc
cmp eax, 0x20
jne 0x409be1
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409be1
mov bl, 1
xor ebp, ebp
jmp 0x409bf2
mov eax, dword [esi]
add eax, ebp
call fcn.00409b70
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409be5
test bl, bl
je 0x409c0d
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409c2c
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409ba4
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43201e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x402330
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x42de10]
xor eax, esp
mov dword [esp + 0x9c], eax
push esi
push edi
push 0x9c
xor edi, edi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.00410e30
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x9c
call esi
test eax, eax
jne 0x402387
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], 0x94
call esi
test eax, eax
je 0x4023bb
cmp dword [esp + 0x18], 2
jne 0x4023bb
mov eax, dword [esp + 0xc]
cmp eax, 5
mov eax, 1
jne 0x4023b9
cmp dword [esp + 0x10], eax
jb 0x4023bb
pop edi
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00410c62
add esp, 0xa0
ret
ja 0x4023bd
mov eax, edi
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
xor ecx, esp
call fcn.00410c62
add esp, 0xa0
ret

Function at 0x4025c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4025d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402614
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402610
lea ebx, [ebx]
cmp esi, eax
jae 0x402614
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402600
cmp esi, eax
jb 0x40261a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x40498c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x42de10]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x4049cc
push 0x425588
push 4
push eax
call fcn.00411596
push eax
call fcn.00404340
add esp, 0x10
jmp 0x4049de
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x404a4c
push edi
call fcn.004128b1
mov edi, dword [eax]
call fcn.004128b1
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00411617
add esp, 0x18
mov ebx, eax
call fcn.004128b1
cmp dword [eax], 0
je 0x404a2c
call fcn.004128b1
push dword [eax]
call fcn.00404907
pop ecx
jmp 0x404a33
call fcn.004128b1
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x404a4c
cmp ebx, esi
jae 0x404a4c
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x404a4e
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00410c62
leave
ret
Function at 0x40c584
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40c5c7
call fcn.0040d3a0
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40c5c7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40c5e2
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040c13b
test ebx, ebx
mov esi, eax
je 0x40c5e0
test edi, edi
je 0x40c5e0
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40ea77
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x40eaa5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40eac3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040e9e1
jmp 0x40eac3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40eac3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0040e9e1
test edi, edi
mov eax, edi
jne 0x40eaad
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x430df0]
test ecx, ecx
je 0x40eb86
jmp 0x40ea76
ret 8

Function at 0x410c62
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42de10]
jne 0x410c6c
repz ret
jmp fcn.00414c6c
Function at 0x418cf0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x42e768]
je 0x418d0b
inc edi
cmp edi, 0x17
jb 0x418cfc
cmp edi, 0x17
jae 0x418e8b
push ebp
push 3
call fcn.0041e3c9
cmp eax, 1
pop ecx
je 0x418e57
push 3
call fcn.0041e3c9
test eax, eax
pop ecx
jne 0x418d3f
cmp dword [0x42de20], 1
je 0x418e57
cmp ebx, 0xfc
je 0x418e8a
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4315e0
push ebp
call fcn.00411596
add esp, 0xc
test eax, eax
je 0x418d75
push esi
push esi
push esi
push esi
push esi
call fcn.00414d7a
add esp, 0x14
push 0x104
mov esi, 0x4315f9
push esi
push 0
mov byte [0x4316fd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x418db9
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00411596
add esp, 0xc
test eax, eax
je 0x418db9
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00414d7a
add esp, 0x14
push esi
call fcn.00412790
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x418dfe
push esi
call fcn.00412790
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4318f4
push 0x4272ec
sub ecx, eax
push ecx
push eax
call fcn.004141d4
add esp, 0x14
test eax, eax
je 0x418dfe
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00414d7a
add esp, 0x14
jmp 0x418e00
xor esi, esi
push 0x4272e8
push ebx
push ebp
call fcn.004116b1
add esp, 0xc
test eax, eax
je 0x418e20
push esi
push esi
push esi
push esi
push esi
call fcn.00414d7a
add esp, 0x14
push dword [edi*8 + 0x42e76c]
push ebx
push ebp
call fcn.004116b1
add esp, 0xc
test eax, eax
je 0x418e42
push esi
push esi
push esi
push esi
push esi
call fcn.00414d7a
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041e20c
add esp, 0xc
jmp 0x418e8a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x418e8a
cmp ebp, 0xffffffff
je 0x418e8a
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x42e76c]
push dword [esi]
call fcn.00412790
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x41e20c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00415d93
xor ebx, ebx
cmp dword [0x431b40], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x41e2e2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41e3c2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4284f4
push edi
call esi
cmp eax, ebx
je 0x41e3c2
push eax
call fcn.00415d25
mov dword [esp], 0x4284e4
push edi
mov dword [0x431b40], eax
call esi
push eax
call fcn.00415d25
mov dword [esp], 0x4284d0
push edi
mov dword [0x431b44], eax
call esi
push eax
call fcn.00415d25
mov dword [0x431b48], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041223e
test eax, eax
pop ecx
pop ecx
je 0x41e2b0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00414d7a
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x41e2e2
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00415d25
cmp eax, ebx
pop ecx
mov dword [0x431b50], eax
je 0x41e2e2
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00415d25
pop ecx
mov dword [0x431b4c], eax
mov eax, dword [0x431b4c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x41e367
cmp dword [0x431b50], ecx
je 0x41e367
push eax
call fcn.00415d9c
push dword [0x431b50]
mov esi, eax
call fcn.00415d9c
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x41e367
cmp edi, ebx
je 0x41e367
call esi
cmp eax, ebx
je 0x41e334
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41e334
test byte [ebp - 0x18], 1
jne 0x41e367
lea eax, [ebp - 0x10]
push eax
call fcn.00412275
test eax, eax
pop ecx
je 0x41e34f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00414d7a
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x41e35e
or dword [ebp + 0x10], 0x200000
jmp 0x41e3a2
or dword [ebp + 0x10], 0x40000
jmp 0x41e3a2
mov eax, dword [0x431b44]
cmp eax, dword [ebp - 8]
je 0x41e3a2
push eax
call fcn.00415d9c
cmp eax, ebx
pop ecx
je 0x41e3a2
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41e3a2
mov eax, dword [0x431b48]
cmp eax, dword [ebp - 8]
je 0x41e3a2
push eax
call fcn.00415d9c
cmp eax, ebx
pop ecx
je 0x41e3a2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x431b40]
call fcn.00415d9c
cmp eax, ebx
pop ecx
je 0x41e3c2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41e3c4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x422358
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x42de10]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004222ed
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00410e30
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4223a7
cmp dword [ebp - 0x1c], 5
jb 0x4223bf
jmp 0x4223bb
cmp dword [ebp - 0x10], 1
jne 0x4223bf
cmp dword [ebp - 0x1c], 4
ja 0x4223bb
jne 0x4223bf
cmp dword [ebp - 0x18], 0
jbe 0x4223bf
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x428564
call fcn.004221c1
test eax, eax
jge 0x4223e0
mov byte [0x42f2c8], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00410c62
add ebp, 0x78
leave
ret