joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4072ad
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x46bc7c], 0
jne 0x4072eb
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4072c1
mov dword [ecx*4 + 0x46bc78], eax
inc ecx
cmp ecx, 0x100
jl 0x4072bc
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x407318
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46bc78]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072f9
not eax
pop ebp
ret 0xc

Function at 0x401046
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
lea eax, [ebp - 4]
push eax
push 0x20
push 0
push dword [ebp + 8]
push 0
push 0
call sub.kernel32.dll_CreateThread
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
leave
ret 4

Function at 0x40106c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push 0
push 0x20
push 4
push 0
push 1
push 0x80000000
push dword [ebp + 0xc]
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 4], eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_ReadFile
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
leave
ret 0x10

Function at 0x4012b6
Capabilities:
Hide graphical window

Disassembly:
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x403040], eax
call sub.kernel32.dll_GetCommandLineA
mov dword [0x403044], eax
push 0xa
push dword [0x403044]
push 0
push dword [0x403040]
call 0x4012b6
push eax
call sub.kernel32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xffffffb4
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], 0x40139f
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push dword [0x403040]
pop dword [ebp - 0x1c]
mov dword [ebp - 0x10], 0x10
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0x403000
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassExA
push 0
push dword [ebp + 8]
push 0
push 0
push 0x1e0
push 0x258
push 0
push 0
push 0xcf0000
push str.Simple_GDI_example_Basic_Animation
push section..data
push 0
call sub.user32.dll_CreateWindowExA
mov dword [0x403048], eax
push 1
push dword [0x403048]
call sub.user32.dll_ShowWindow
push dword [0x403048]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_GetMessageA
or eax, eax
je 0x401398
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_DispatchMessageA
jmp 0x401371
mov eax, dword [ebp - 0x44]
leave
ret 0x10
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x36ed3ae0
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
nop
mov ecx, 0x3194223d
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219

Function at 0x40153f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0x134]
sub esp, 0x154
mov dword [ebp - 0x134], 0
mov dword [esp], eax
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x118], 6
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x120], 0
call dword [sym.imp.USER32.dll_RegisterClassA]
push ecx
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ebx
lea ebx, [ebp - 0x10c]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push eax
push eax
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push eax
push eax
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 4]
leave
sub eax, 3
ret

Function at 0x40162d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x88], 0
call fcn.0040153f
test eax, eax
jne 0x4016c7
lea eax, [ebp - 0x8c]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov eax, 0x40215e
sub eax, 0x4016fc
mov dword [esp], 0x4016fc
mov dword [esp + 4], eax
mov dword [ebp - 0x8c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x4016c7
lea ebx, [ebp - 0x88]
mov dword [esp], 0
call fcn.00401442
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.004014c9
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1b600
mov dword [esp], 0x40300c
call fcn.00401e61
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e072
nop
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x19a17669
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x42e0d2
nop
nop
nop
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0xbf2365c
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e0c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x5fa840
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x19d000]
push edi
jmp 0x5fa85a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5fa861
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5fa850
mov eax, 1
add ebx, ebx
jne 0x5fa873
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5fa884
jne 0x5fa8a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5fa8a3
dec eax
add ebx, ebx
jne 0x5fa890
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5fa868
add ebx, ebx
jne 0x5fa89f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5fa8f5
xor ecx, ecx
sub eax, 3
jb 0x5fa8bb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5fa92a
sar eax, 1
mov ebp, eax
jmp 0x5fa8c6
add ebx, ebx
jne 0x5fa8c6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5fa894
inc ecx
add ebx, ebx
jne 0x5fa8d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5fa894
add ebx, ebx
jne 0x5fa8e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5fa8d6
jne 0x5fa8f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5fa8d6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5fa914
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5fa906
jmp 0x5fa856
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5fa914
add edi, ecx
jmp 0x5fa856
pop esi
mov edi, esi
mov ecx, 0x40d6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5fa932
cmp byte [edi], 0x11
jne 0x5fa932
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5fa937
lea edi, [esi + 0x1f3000]
mov eax, dword [edi]
or eax, eax
je 0x5fa9af
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x30f560]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x30f6dc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5fa964
mov ecx, edi
jns 0x5fa993
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x30f6e0]
or eax, eax
je 0x5fa9a9
mov dword [ebx], eax
add ebx, 4
jmp 0x5fa981
call dword [esi + 0x30f6f0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5fa9e0
cmp al, 0xef
ja 0x5fa9d3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5fa9b5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5fa9c2
mov ebp, dword [esi + 0x30f6e4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5faa14
sub esp, 0xffffff80
jmp 0x4204f7
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x48612449
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x7eb54ca1
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x100015c0
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 0xc], 0
jmp 0x100015ed
jmp 0x1000168e
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x100016fe
jmp 0x100015cf
jmp 0x100015d4
jmp 0x10001710
cmp dword [ebp - 0xc], 0xb1
je 0x10001720
mov eax, dword [sym.imp.KERNEL32.dll_GetACP]
call eax
mov ecx, esp
mov dword [ecx], 0xec1bec
mov ecx, dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x10], eax
call ecx
sub esp, 4
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 8], 0x392
je 0x1000169b
mov eax, dword [ebp - 8]
mov ecx, 0xaaaaaaab
mov dword [ebp - 0x18], eax
mul ecx
shr edx, 3
imul eax, edx, 0xc
mov ecx, dword [ebp - 0x18]
sub ecx, eax
mov eax, ecx
sub eax, 0xa
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], eax
je 0x100015e4
jmp 0x10001651
mov eax, dword [ebp - 0x1c]
sub eax, 3
mov dword [ebp - 0x24], eax
jne 0x100015cf
jmp 0x10001662
mov eax, esp
mov dword [eax + 4], 0x2f8
mov dword [eax], 0x4f5679
mov eax, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
call eax
sub esp, 8
mov ecx, dword [sym.imp.GDI32.dll_GdiFlush]
mov dword [ebp - 0x28], eax
call ecx
mov dword [ebp - 0x2c], eax
jmp 0x100015e4
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x10001621
mov eax, dword [ebp - 0xc]
mov ecx, 0xcc29786d
mov dword [ebp - 0x30], eax
mul ecx
shr edx, 8
imul eax, edx, 0x141
mov ecx, dword [ebp - 0x30]
sub ecx, eax
mov eax, ecx
sub eax, 5
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
je 0x100016f2
jmp 0x100016c5
mov eax, dword [ebp - 0x34]
sub eax, 0x54
mov dword [ebp - 0x3c], eax
jne 0x100016f7
jmp 0x100016d2
mov eax, esp
mov dword [eax], 0xedff59
mov eax, dword [sym.imp.ADVAPI32.dll_DeleteService]
call eax
sub esp, 4
mov ecx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x40], eax
call ecx
mov dword [ebp - 0x44], eax
jmp 0x100015e8
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0xa
jne 0x100015e6
jmp 0x100015e8
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
jmp 0x100015ed
add esp, 0x4c
pop ebp
ret
Function at 0x10002080
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x10111cd8], 0x214c
mov dword [ebp - 0xc], 0
mov dword [0x10111cd8], 0x1a44
mov eax, dword fs:[0x30]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [0x10111cd8], 0x15d3
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
jmp 0x10002100
jmp 0x10002130
mov eax, dword [0x10111cd8]
sub eax, 0x136c
mov dword [0x10111cd8], eax
mov dword [ebp - 8], 1
jmp 0x10002222
jmp 0x1000220f
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x10002100
jmp 0x10002208
cmp dword [ebp - 4], 0x104
jge 0x10002130
mov dword [0x10111cd8], 0x178b
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2]
cmp eax, 0
je 0x100020cc
mov dword [0x10111cd4], 0x2527
jmp 0x100020ee
mov dword [0x10111cd8], 0x2695
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2 - 0x1a]
cmp eax, 0x6c
jne 0x10002211
mov dword [0x10111cd4], 0x1b7
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2 - 0x18]
cmp eax, 0x6f
jne 0x1000220f
mov dword [0x10111cd4], 0x17a7
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2 - 0x16]
cmp eax, 0x61
jne 0x100020e9
mov eax, dword [0x10111cd4]
sub eax, 0xc08
mov dword [0x10111cd4], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2 - 0x14]
cmp eax, 0x64
jne 0x1000220a
mov dword [0x10111cd4], 0xa9c
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2 - 0x12]
cmp eax, 0x64
jne 0x10002208
mov dword [0x10111cd4], 0x553
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2 - 0x10]
cmp eax, 0x6c
jne 0x100020fb
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
movzx eax, word [ecx + eax*2 - 0xe]
cmp eax, 0x6c
je 0x100020ce
jmp 0x100020fb
jmp 0x1000220a
jmp 0x100020e9
jmp 0x10002211
mov dword [0x10111cd4], 0x21c9
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
add esp, 0x10
pop ebp
ret

Function at 0x10002510
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [fcn.10002510]
mov dword [ebp - 4], eax
jmp 0x10002539
mov eax, dword [0x10111cd4]
add eax, 0x218a
mov dword [0x10111cd8], eax
mov dword [ebp - 8], 0
jmp 0x10002584
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp eax, 0x5a4d
jne 0x10002562
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
cmp dword [ecx + eax], 0x4550
jne 0x10002560
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
jmp 0x10002584
jmp 0x10002562
mov eax, dword [ebp - 4]
sub eax, 0x1000
and eax, 0xfffff000
mov dword [ebp - 4], eax
mov dword [0x10111cd8], 0xe24
mov al, 1
test al, 1
jne 0x10002539
jmp 0x10002521
mov eax, dword [ebp - 8]
add esp, 8
pop ebp
ret
Function at 0x401280
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x41a060]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00409d70
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
call fcn.00402ea0
add esp, 4
test eax, eax
je 0x4012d9
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x218]
call fcn.00401000
call fcn.004011d0
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x218]
call fcn.00401030
xor ecx, ecx
jne 0x4012d9
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004088e2
mov esp, ebp
pop ebp
ret 0x10

Function at 0x402f00
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x41a060]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.00409d70
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x4178ec
call fcn.00402de0
add esp, 8
test eax, eax
jne 0x402f56
jmp 0x40304a
xor eax, eax
mov word [ebp - 0x420], ax
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call fcn.00409d70
add esp, 0xc
lea edx, [ebp - 0x420]
push edx
call fcn.00402ea0
add esp, 4
lea eax, [ebp - 0x218]
push eax
push 0x104
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x420]
push edx
push 0x417910
push 0x417920
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov ecx, dword [ebp - 0x424]
add ecx, 2
mov dword [ebp - 0x428], ecx
mov edx, dword [ebp - 0x424]
mov ax, word [edx]
mov word [ebp - 0x42a], ax
add dword [ebp - 0x424], 2
cmp word [ebp - 0x42a], 0
jne 0x402fc6
mov ecx, dword [ebp - 0x424]
sub ecx, dword [ebp - 0x428]
sar ecx, 1
mov dword [ebp - 0x430], ecx
mov edx, dword [ebp - 0x430]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax*2 - 2]
cmp edx, 0x5c
je 0x403042
cmp dword [ebp - 8], 0x103
jae 0x40303b
mov eax, 0x5c
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov word [edx + ecx*2], ax
xor eax, eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov word [edx + ecx*2 + 2], ax
jmp 0x403042
mov dword [ebp - 4], 0
xor eax, eax
jne 0x402f1a
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004088e2
mov esp, ebp
pop ebp
ret
Function at 0x403230
Capabilities:
Delete file
Download url
Read file on windows
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4185d0
push 0x40bc60
mov eax, dword fs:[0]
push eax
add esp, 0xfffffdc4
mov eax, dword [0x41a060]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0
jne 0x40327b
jmp 0x403402
xor eax, eax
mov word [ebp - 0x228], ax
push 0x206
push 0
lea ecx, [ebp - 0x226]
push ecx
call fcn.00409d70
add esp, 0xc
lea edx, [ebp - 0x228]
push edx
call fcn.00402f00
add esp, 4
test eax, eax
jne 0x4032b2
jmp 0x403402
push str.tempInfo.web
push 0x104
lea eax, [ebp - 0x228]
push eax
call fcn.00408f12
add esp, 0xc
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
lea edx, [ebp - 0x228]
push edx
mov eax, dword [ebp + 8]
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileW
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
jne 0x4033e1
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0xffffffff
je 0x4033e1
xor edx, edx
mov word [ebp - 0x248], dx
xor eax, eax
mov dword [ebp - 0x246], eax
mov dword [ebp - 0x242], eax
mov dword [ebp - 0x23e], eax
mov dword [ebp - 0x23a], eax
mov word [ebp - 0x236], ax
mov dword [ebp - 0x234], 0
push 0
lea ecx, [ebp - 0x234]
push ecx
push 0x14
lea edx, [ebp - 0x248]
push edx
mov eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4033c7
cmp dword [ebp - 0x234], 0
je 0x4033c7
lea ecx, [ebp - 0x248]
push ecx
call fcn.0040914d
add esp, 4
mov dword [ebp - 0x24c], eax
xor edx, edx
cmp dword [ebp - 0x24c], 0
sete dl
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov dword [ebp - 0x1c], 1
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xfffffffe
jmp 0x4033fa
xor eax, eax
jne 0x403270
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.004088e2
mov esp, ebp
pop ebp
ret
Function at 0x403430
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x403445
jmp 0x4034ab
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 1
push 0
push 0
push 0xc0000000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4034a7
mov edx, 0xfeff
mov word [ebp - 0x10], dx
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0xc]
push eax
push 2
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
jne 0x40343d
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x41a060]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], ecx
push 0x4171bc
mov ecx, dword [ebp - 0x218]
call fcn.004083f0
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x218]
call fcn.00403bd0
movzx ecx, al
test ecx, ecx
je 0x403b8d
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0xffffffff
jne 0x403b8d
lea eax, [ebp - 0x210]
push eax
call fcn.00403430
add esp, 4
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004088e2
mov esp, ebp
pop ebp
ret