joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dc30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov esi, dword [edi + 0xc]
test esi, esi
je 0x40dcc2
mov eax, dword [0x447ba0]
test eax, eax
je 0x40dcb6
mov ebx, dword [eax + 0x30]
test ebx, ebx
js 0x40dd31
mov ecx, dword [eax + 0x30]
test ecx, ecx
jne 0x40dcd7
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
cmp eax, 7
jne 0x40dd4f
mov eax, dword [0x447ba0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40dd22
mov edx, dword [eax + 0x30]
test edx, edx
js 0x40dd40
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x40dd03
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447ba0]
jmp 0x40dc52
mov dword [esp], edi
call sym.__Unwind_SjLj_RaiseException
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x40dc67
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40dca5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40dca5
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447ba0]
jmp 0x40dc90
call sym._fc_key_init_once
mov eax, dword [0x447ba0]
jmp 0x40dc5d
call sym._fc_key_init_once
mov eax, dword [0x447ba0]
jmp 0x40dc9b
call sym._abort
lea esi, [esi]
lea edi, [edi]

Function at 0x40df00
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov edx, eax
je 0x40df30
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov dword [esp], edx
mov dword [esp + 4], eax
call sym.___mingwthr_key_dtor
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret
Function at 0x410c20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.___do_sjlj_init

Function at 0x411590
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
call sym._fread
test eax, eax
mov edx, eax
jle 0x4115e0
movzx eax, byte [esi + eax - 1]
mov dword [ebx + 0x24], eax
mov ebx, dword [ebp - 8]
mov eax, edx
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x24], 0xffffffff
mov eax, edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x405c2a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422abc], 0
push esi
jne 0x405c61
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405c3b
mov dword [ecx*4 + 0x422ab8], eax
inc ecx
cmp ecx, 0x100
jl 0x405c36
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405c92
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422ab8]
xor eax, esi
inc ecx
dec edx
jne 0x405c74
pop edi
not eax
pop esi
ret 0xc
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x863058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008631a8
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 0x86307e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x86306a
add dl, dl
jne 0x863089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8630dc
xor eax, eax
add dl, dl
jne 0x863096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x86317d
add dl, dl
jne 0x8630a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8630b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8630bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8630c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8630d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x863075
mov eax, 1
add dl, dl
jne 0x8630ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8630f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8630e1
sub eax, ebx
mov ebx, 1
jne 0x863128
mov ecx, 1
add dl, dl
jne 0x86310e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x863119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x863105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x863075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x86313f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x86314a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x863136
cmp eax, 0x7d00
jae 0x86316d
cmp eax, 0x500
jb 0x863168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x863075
cmp eax, 0x7f
ja 0x863170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x863075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x86319e
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 0x863075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401000
Capabilities:
Create process on windows
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
mov eax, dword [0x415048]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x416de0
push 0x67
push esi
call edi
push 0x64
push 0x416d18
push 0x6d
push esi
call edi
mov eax, esi
call fcn.004011a0
push 0
push esi
push 0
push 0
push 0
push connect
push 0
push connect
push 0xcf0000
push 0x416de0
push 0x416d18
push 0
mov dword [0x416ea8], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
jne 0x401092
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00404908
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call edi
call fcn.00402a30
call fcn.00402010
test eax, eax
je 0x4010c3
call fcn.00403270
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00401380
test eax, eax
je 0x40107a
test byte [0x41746c], 7
je 0x4010da
call fcn.004018f0
mov eax, dword [0x417748]
test eax, eax
je 0x401107
cmp word [0x41774c], 0
jbe 0x401107
push eax
mov esi, 0x415f1c
call fcn.00403a20
mov ax, word [0x41774c]
add esp, 4
mov word [0x415f2c], ax
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x413410]
mov word [eax + 0x417c80], cx
add eax, 2
test cx, cx
jne 0x401110
call fcn.00403a90
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x12]
push edx
mov word [esp + 0x14], cx
call fcn.00408260
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x417c80
lea ecx, [esp + 0xc]
push 0x104
push ecx
call fcn.00404917
add esp, 0xc
push 0x1f4
call edi
push 1
push 0
push 0x413428
lea edx, [esp + 0x14]
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401380
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d8
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor eax, eax
push 0x3e
push eax
lea ecx, [ebp - 0x46]
push ecx
mov word [ebp - 0x48], ax
call fcn.00408260
add esp, 0xc
lea edx, [ebp - 0x1d8]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, 0x417880
call fcn.00401c90
test eax, eax
jne 0x401460
mov edi, edi
movzx ecx, word [eax + 0x41342c]
mov word [eax + 0x417a28], cx
add eax, 2
test cx, cx
jne 0x4013d0
push 0x413438
push 0x40
push 0x417884
call fcn.0040498c
add esp, 0xc
push 0x413454
push 0x10
push 0x417906
call fcn.0040498c
add esp, 0xc
push 0x413460
push 0x40
push 0x417926
call fcn.0040498c
mov eax, 0x51
mov ecx, 0x2b70
add esp, 0xc
mov word [0x417904], ax
mov word [0x4179a6], cx
xor eax, eax
jmp 0x401440
movzx ecx, word [eax + 0x41347c]
mov word [eax + 0x417a08], cx
add eax, 2
test cx, cx
jne 0x401440
mov dword [0x417a48], 5
call fcn.004035c0
lea edi, [ebp - 0x48]
call fcn.00403520
xor eax, eax
nop
movzx ecx, word [ebp + eax - 0x48]
mov word [eax + 0x416eb0], cx
add eax, 2
test cx, cx
jne 0x401470
push 0x416eb0
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x4014b3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404908
mov esp, ebp
pop ebp
ret
push 0x416eb0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x4014a1
push 0x41348c
call fcn.00403670
add esp, 4
mov dword [0x417748], eax
call fcn.00401510
push 0
push 0
push 0
push 0x401bb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00404908
mov esp, ebp
pop ebp
ret
Function at 0x401740
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x412]
push ecx
xor ebx, ebx
mov word [ebp - 0x414], ax
call fcn.00408260
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x20a]
push eax
mov word [ebp - 0x20c], dx
call fcn.00408260
add esp, 0x18
push 0x104
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push 0x4134f8
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
xor edx, edx
push 0x4134ec
push ecx
mov word [ebp - 0x410], dx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x10
lea edx, [ebp - 0x20c]
push edx
call edi
cmp eax, 0xffffffff
je 0x4017e8
mov ebx, 1
push 0x413548
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push 0x41353c
push ecx
call esi
add esp, 0x10
lea edx, [ebp - 0x20c]
push edx
call edi
cmp eax, 0xffffffff
je 0x401816
or ebx, 2
push 0x413590
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push 0x4135dc
push ecx
call esi
add esp, 0x10
lea edx, [ebp - 0x20c]
push edx
call edi
cmp eax, 0xffffffff
je 0x401844
or ebx, 4
push 0x4135e8
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push 0x41363c
push ecx
call esi
add esp, 0x10
lea edx, [ebp - 0x20c]
push edx
call edi
cmp eax, 0xffffffff
je 0x401875
or ebx, 0x100
push 0x413648
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push 0x41369c
push ecx
call esi
add esp, 0x10
lea edx, [ebp - 0x20c]
push edx
call edi
cmp eax, 0xffffffff
je 0x4018a6
or ebx, 0x200
push 0x4136a8
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push 0x413708
push ecx
call esi
add esp, 0x10
lea edx, [ebp - 0x20c]
push edx
call edi
cmp eax, 0xffffffff
je 0x4018d7
or ebx, 0x400
mov ecx, dword [ebp - 4]
pop edi
mov eax, ebx
pop esi
xor ecx, ebp
or eax, 0x2000000
pop ebx
call fcn.00404908
mov esp, ebp
pop ebp
ret
Function at 0x401d40
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
test edi, edi
je 0x401e5e
test esi, esi
je 0x401e5e
mov eax, esi
lea edx, [eax + 2]
jmp 0x401d70
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401d70
sub eax, edx
sar eax, 1
je 0x401e5e
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00408260
add esp, 0xc
cmp dword [ebp + 8], ebx
jne 0x401dde
cmp dword [0x415f10], 3
jne 0x401dde
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41328c
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.00404917
add esp, 0xc
jmp 0x401df0
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00404917
push 0x413290
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x210]
push edx
mov dword [ebp - 0x210], ebx
call fcn.00404c39
mov eax, dword [ebp - 0x210]
add esp, 0x18
test eax, eax
je 0x401e5e
push eax
push 1
push 0x200
push edi
call fcn.00404eca
mov eax, dword [ebp - 0x210]
push eax
call fcn.00404f54
add esp, 0x14
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404908
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00404908
mov esp, ebp
pop ebp
ret

Function at 0x401f20
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [eax], 0x504d534d
xor eax, eax
mov edi, edi
mov cl, byte [esi + eax]
not cl
mov byte [esi + eax], cl
inc eax
cmp eax, 0x200
jb 0x401f40
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x212]
push eax
mov word [ebp - 0x214], dx
call fcn.00408260
add esp, 0xc
mov dword [ebp - 0x218], 0
test esi, esi
je 0x401ff9
lea ecx, [ebp - 0x214]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x4132b0
lea edx, [ebp - 0x214]
push 0x104
push edx
call fcn.00404917
push 0x4132cc
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.00404c39
mov eax, dword [ebp - 0x218]
add esp, 0x18
test eax, eax
je 0x401fe6
push eax
push 1
push 0x200
push esi
call fcn.0040511f
mov edx, dword [ebp - 0x218]
push edx
call fcn.00404f54
add esp, 0x14
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404908
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor ecx, ebp
xor eax, eax
call fcn.00404908
mov esp, ebp
pop ebp
ret
Function at 0x402840
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.00408260
add esp, 0xc
push 0x200
xor esi, esi
lea edx, [ebp - 0x410]
push esi
push edx
call fcn.00408260
add esp, 0xc
lea ebx, [ebp - 0x410]
call fcn.00401e70
test eax, eax
je 0x40299f
xor eax, eax
nop
movzx ecx, word [eax + 0x4133dc]
mov word [eax + 0x417578], cx
add eax, 2
test cx, cx
jne 0x4028a0
xor eax, eax
jmp 0x4028c0
movzx ecx, word [ebp + eax - 0x38a]
mov word [eax + 0x417470], cx
add eax, 2
test cx, cx
jne 0x4028c0
xor eax, eax
lea esp, [esp]
movzx ecx, word [ebp + eax - 0x40c]
mov word [eax + 0x4174f0], cx
add eax, 2
test cx, cx
jne 0x4028e0
cmp dword [0x415f10], 3
mov ax, word [ebp - 0x38c]
mov cx, word [ebp - 0x2ea]
mov word [0x417570], ax
mov word [0x4175f8], cx
mov dword [0x4175fc], 5
je 0x402939
lea edx, [ebp - 0x210]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x402964
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x413878
lea ecx, [ebp - 0x210]
push 0x104
push ecx
call fcn.00404917
add esp, 0xc
push 0x4133f8
lea edx, [ebp - 0x210]
push 0x104
push edx
call fcn.00404917
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404908
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404908
mov esp, ebp
pop ebp
ret

Function at 0x402a30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
mov dword [0x415f10], 0
call fcn.00408260
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402ae7
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jne 0x402ab1
mov eax, dword [ebp - 0x118]
cmp eax, 2
jae 0x402a99
cmp eax, 1
jne 0x402ae7
mov dword [0x415f10], 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404908
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x402ae7
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x402ad8
mov dword [0x415f10], 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404908
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x402ae7
mov dword [0x415f10], 5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404908
mov esp, ebp
pop ebp
ret
Function at 0x402b00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00408260
add esp, 0xc
cmp dword [0x415f10], 3
jne 0x402b67
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x413878
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00404917
add esp, 0xc
jmp 0x402b79
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea edx, [ebp - 0x20c]
push edx
push 0x41387c
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.00404908
mov esp, ebp
pop ebp
ret

Function at 0x402c60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, eax
cmp edi, 0xffffffff
je 0x402d8a
push 0x400
call fcn.0040544d
add esp, 4
push 0x400
xor esi, esi
mov ebx, eax
push esi
push ebx
call fcn.00408260
add esp, 0xc
call fcn.00402e40
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], ecx
shld ecx, eax, 9
shl eax, 9
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 4]
push ecx
push 0x400
push ebx
push edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
je 0x402d81
cmp dword [ebx + 4], 0x5042475f
jne 0x402d24
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x402cf0
sub eax, edx
sar eax, 1
je 0x402d24
mov edi, dword [ebp + 8]
mov ecx, 0x8d
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
movsw word es:[edi], word [esi]
call fcn.004054e1
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x400
push ebx
push edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], 0x3c00
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
je 0x402d81
cmp dword [ebx + 4], 0x5042475f
jne 0x402d81
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x402d70
sub eax, edx
sar eax, 1
jne 0x402d01
push ebx
call fcn.004054e1
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402da0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov dword [ebp - 0x214], 0
mov word [ebp - 0x210], ax
call fcn.00408260
add esp, 0xc
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx eax, word [ebp - 0x210]
sub eax, 0x41
push eax
lea ebx, [ebp - 0x214]
call fcn.00402f30
mov ebx, dword [ebp - 0x214]
add esp, 4
call fcn.00403020
cmp eax, 0xffffffff
jne 0x402e28
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404908
mov esp, ebp
pop ebp
ret
push esi
call fcn.00402c60
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop ebx
call fcn.00404908
mov esp, ebp
pop ebp
ret

Function at 0x402e40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
push 0x1ff
lea eax, [ebp - 0x207]
push ebx
push eax
xor esi, esi
mov byte [ebp - 0x208], bl
call fcn.00408260
add esp, 0xc
cmp edi, 0xffffffff
je 0x402f0c
xor eax, eax
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x20c]
push edx
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x210], eax
push 0x200
lea eax, [ebp - 0x208]
push eax
push edi
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x214], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x402f0c
mov eax, dword [ebp - 0x42]
add eax, dword [ebp - 0x3e]
cmp eax, ebx
jbe 0x402ee8
mov esi, eax
mov eax, dword [ebp - 0x2e]
add eax, dword [ebp - 0x32]
cmp eax, esi
jbe 0x402ef4
mov esi, eax
mov eax, dword [ebp - 0x22]
add eax, dword [ebp - 0x1e]
cmp eax, esi
jbe 0x402f00
mov esi, eax
mov eax, dword [ebp - 0x12]
add eax, dword [ebp - 0xe]
cmp eax, esi
jbe 0x402f0c
mov esi, eax
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404908
mov esp, ebp
pop ebp
ret
Function at 0x403150
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push 0x4138f0
mov edi, ecx
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], 0
call fcn.00404c39
add esp, 0xc
test eax, eax
je 0x40317d
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push ebx
push esi
push 2
push 0
push edx
call fcn.004055a5
mov eax, dword [ebp - 4]
push eax
call fcn.004057b5
mov ecx, dword [ebp - 4]
push 0
push 0
push ecx
mov esi, eax
call fcn.004055a5
lea eax, [esi + edi]
push eax
mov dword [ebp - 0xc], eax
call fcn.0040544d
mov edx, dword [ebp - 4]
push edx
push 1
mov ebx, eax
push esi
push ebx
call fcn.00404eca
mov eax, dword [ebp - 4]
push eax
call fcn.00404f54
push edi
add esi, ebx
push 0
push esi
mov dword [ebp - 8], esi
call fcn.00408260
mov eax, edi
cdq
and edx, 3
lea esi, [edx + eax]
add esp, 0x40
sar esi, 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0040581a
add esp, 4
xor edi, edi
test esi, esi
jle 0x403210
lea ebx, [ebx]
call fcn.0040582c
mov ecx, dword [ebp - 8]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, esi
jl 0x403200
mov edx, dword [ebp + 8]
push 0x4138f8
push edx
lea eax, [ebp - 4]
push eax
call fcn.00404c39
add esp, 0xc
test eax, eax
je 0x403232
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
push ecx
push 1
push edx
push ebx
call fcn.0040511f
mov eax, dword [ebp - 4]
push eax
call fcn.00404f54
add esp, 0x14
test ebx, ebx
je 0x40325b
push ebx
call fcn.004054e1
add esp, 4
pop esi
pop ebx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret