joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4052e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push esi
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.IDR_BINARY
mov esi, eax
push 0x82
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x405373
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, edi
and esi, 0x1ff
neg esi
sbb esi, esi
mov ecx, edi
neg esi
shr ecx, 9
add esi, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
shl esi, 9
push esi
mov dword [eax], edi
call fcn.0040bead
push esi
mov ebx, eax
push 0
push ebx
call fcn.00412cf0
mov edx, dword [esp + 0x20]
push edi
push edx
push ebx
call fcn.00413720
add esp, 0x1c
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x405380
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x314
mov eax, dword [0x424044]
xor eax, esp
mov dword [esp + 0x310], eax
lea eax, [esp + 4]
push eax
push 0x104
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str._uninsep.bat
lea ecx, [esp + 8]
push 0x104
push ecx
call fcn.0040d4d2
add esp, 0xc
push 0x104
lea edx, [esp + 0x10c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0x210]
push 0x104
push ecx
call fcn.0040bddb
lea edx, [esp + 0x218]
push 0x5c
push edx
call fcn.0040d110
add esp, 0x14
test eax, eax
je 0x40540b
mov byte [eax], 0
push ebx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405507
mov eax, str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_nrmdir___s__r_ndel___s_
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405440
sub eax, edx
push esi
push edi
mov edi, eax
lea eax, [esp + 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405457
sub eax, edx
mov ecx, eax
lea eax, [esp + 0x10]
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405470
sub eax, esi
lea edx, [eax + ecx*2]
add edx, ecx
lea edi, [edx + edi + 0x32]
push edi
call fcn.0040bead
push edi
mov esi, eax
push 0
push esi
call fcn.00412cf0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x22c]
push ecx
lea edx, [esp + 0x12c]
push edx
mov eax, edx
push eax
push str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_nrmdir___s__r_ndel___s_
push edi
push esi
call fcn.0040bdbd
mov eax, esi
add esp, 0x2c
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4054c0
push 0
sub eax, ecx
lea ecx, [esp + 0x10]
push ecx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test esi, esi
je 0x405505
push esi
call fcn.0040c278
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x314]
pop ebx
xor ecx, esp
call fcn.0040bc96
add esp, 0x314
ret
Function at 0x405520
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x474
mov eax, dword [0x424044]
xor eax, esp
mov dword [esp + 0x46c], eax
push 0x44
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00412cf0
xor ecx, ecx
xor eax, eax
push 0x206
push ecx
lea edx, [esp + 0x276]
push edx
mov dword [esp + 0x28], 0x44
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov word [esp + 0x278], cx
call fcn.00412cf0
push 0x103
push esi
lea eax, [esp + 0x280]
push 0x104
push eax
call fcn.0040d13d
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x8a]
push edx
mov word [esp + 0x8c], cx
call fcn.00412cf0
push 0x103
push edi
lea eax, [esp + 0x94]
push 0x104
push eax
call fcn.0040d13d
add esp, 0x44
lea ecx, [esp]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x60]
push eax
push 0
push 0x20
push 0
push 0
push 0
lea ecx, [esp + 0x280]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, 1
jne 0x40560d
xor eax, eax
mov ecx, dword [esp + 0x46c]
xor ecx, esp
call fcn.0040bc96
add esp, 0x474
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x46c]
xor ecx, esp
call fcn.0040bc96
add esp, 0x474
ret

Function at 0x405650
Capabilities:
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x424044]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00412cf0
add esp, 0xc
push 0x104
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx eax, word [esp + 8]
sub eax, 0x41
push eax
lea ebx, [esp + 8]
call fcn.00405090
mov ebx, dword [esp + 8]
add esp, 4
call fcn.00404f10
cmp eax, 0xffffffff
jne 0x4056d2
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040bc96
add esp, 0x218
ret
push esi
call fcn.00405700
mov ecx, dword [esp + 0x218]
add esp, 4
pop ebx
xor ecx, esp
call fcn.0040bc96
add esp, 0x218
ret
Function at 0x405700
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x1c
push ebx
push esi
mov esi, eax
xor eax, eax
push edi
mov dword [esp + 0xc], eax
cmp esi, 0xffffffff
je 0x4057e9
push 0x200
call fcn.0040bead
add esp, 4
push 0x200
mov ebx, eax
push 0
push ebx
call fcn.00412cf0
add esp, 0xc
push esi
call fcn.004051a0
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], ecx
mov ecx, 0x200
mul ecx
add esp, 4
mov dword [esp + 0x20], edx
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
push ecx
push ebx
push esi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4057d8
mov edi, 0x5042475f
cmp dword [ebx + 4], edi
je 0x4057c1
push ebx
push 0x1e
call fcn.00404ca0
add esp, 8
test eax, eax
je 0x4057d8
cmp dword [ebx + 4], edi
jne 0x4057d8
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4057b0
sub eax, edx
sar eax, 1
je 0x4057d8
mov edi, dword [esp + 0x2c]
mov ecx, 0x5b
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [esp + 0xc], 1
test ebx, ebx
je 0x4057e5
push ebx
call fcn.0040c278
add esp, 4
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x406ae0
Capabilities:
Hash data using sha1
Read file on windows

Disassembly:
mov eax, 0x1068
call fcn.00417640
mov eax, dword [0x424044]
xor eax, esp
mov dword [esp + 0x1064], eax
push ebx
push ebp
push esi
push 2
xor ebp, ebp
mov ebx, ecx
push ebp
push edi
mov dword [esp + 0x1c], ebx
call fcn.0040c828
push edi
call fcn.0040ca4a
push ebp
push ebp
push edi
mov dword [esp + 0x28], eax
call fcn.0040c828
push edi
push 0x1000
lea eax, [esp + 0x94]
push 1
push eax
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x48], 0x67452301
mov dword [esp + 0x4c], 0xefcdab89
mov dword [esp + 0x50], 0x98badcfe
mov dword [esp + 0x54], 0x10325476
mov dword [esp + 0x58], 0xc3d2e1f0
call fcn.0040cd58
mov esi, eax
add esp, 0x2c
test esi, esi
jbe 0x406ba3
lea esp, [esp]
lea ecx, [esp + 0x70]
push esi
push ecx
lea ebx, [esp + 0x1c]
call fcn.00406950
push edi
push 0x1000
lea edx, [esp + 0x80]
push 1
push edx
add ebp, esi
call fcn.0040cd58
mov esi, eax
add esp, 0x18
test esi, esi
ja 0x406b70
mov ebx, dword [esp + 0x10]
push ebx
lea esi, [esp + 0x18]
call fcn.004069f0
push edi
call fcn.0040cdec
add esp, 8
cmp ebp, dword [esp + 0xc]
jae 0x406be4
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
pop esi
mov dword [ebx + 0xc], eax
pop ebp
mov dword [ebx + 0x10], eax
pop ebx
mov ecx, dword [esp + 0x1064]
xor ecx, esp
call fcn.0040bc96
add esp, 0x1068
ret
mov ecx, dword [esp + 0x1070]
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0040bc96
add esp, 0x1068
ret
Function at 0x406ec0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push ebx
xor eax, eax
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov dword [esp + 0xc], eax
cmp dword [ecx], eax
je 0x406f42
cmp edi, eax
jle 0x406eed
lea ebx, [ebx]
mov dl, byte [eax + ebp]
not dl
mov byte [eax + ebp], dl
inc eax
cmp eax, edi
jl 0x406ee0
lea ebx, [edi + 7]
push ebx
call fcn.0040bead
mov esi, eax
lea eax, [edi + 5]
mov word [esi], ax
mov ecx, dword [str.AS101]
push edi
mov dword [esi + 2], ecx
mov dl, byte [0x425058]
lea eax, [esi + 7]
push ebp
push eax
mov byte [esi + 6], dl
call fcn.00413720
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
add esp, 0x10
push 0
push ebx
push esi
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x406f46
cmp eax, ebx
jne 0x406f46
mov dword [esp + 0xc], 1
jmp 0x406f46
mov esi, dword [esp + 0x14]
test esi, esi
je 0x406f53
push esi
call fcn.0040c278
add esp, 4
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4070a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x8e0
mov eax, dword [0x424044]
xor eax, esp
mov dword [esp + 0x8dc], eax
mov eax, dword [esp + 0x8e4]
push ebx
push esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x8f0]
push edi
lea edi, [esp + 0xe8]
mov ebx, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], edi
test eax, eax
je 0x4070e4
mov dword [esp + 0x10], eax
mov edi, eax
xor edx, edx
mov word [edi], dx
mov esi, dword [ebx]
xor eax, eax
mov dword [esp + 0xc], eax
test esi, esi
je 0x40722b
test ecx, ecx
je 0x40722b
push ebp
push 0xc7
push eax
mov byte [esp + 0x2c], al
lea eax, [esp + 0x2d]
push eax
call fcn.00412cf0
mov ebp, dword [sym.imp.WS2_32.dll_recv]
add esp, 0xc
push 0
push 2
lea ecx, [esp + 0x2c]
push ecx
push esi
call ebp
cmp eax, 0xffffffff
je 0x407281
test eax, eax
je 0x407281
movzx edi, word [esp + 0x24]
lea edx, [edi + 2]
push edx
xor esi, esi
call fcn.0040bead
add esp, 4
mov dword [esp + 0x18], eax
test edi, edi
jle 0x407215
jmp 0x407160
mov ecx, dword [esp + 0x18]
push 0
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebx]
lea edx, [esi + ecx]
push edx
push eax
call ebp
cmp eax, 0xffffffff
je 0x4071f4
test eax, eax
je 0x4071f4
add esi, eax
cmp edi, esi
jg 0x407160
cmp esi, 5
jl 0x407215
mov ecx, dword [str.AS101]
mov edi, dword [esp + 0x18]
sub esi, 5
cmp ecx, dword [edi]
jne 0x40725c
mov dl, byte [edi + 4]
cmp dl, byte [0x425058]
jne 0x40725c
test esi, esi
jle 0x4071cc
lea eax, [edi + 5]
mov ecx, esi
lea esp, [esp]
mov dl, byte [eax]
not dl
mov byte [eax], dl
inc eax
sub ecx, 1
jne 0x4071c0
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx]
add edi, 5
cmp eax, esi
jl 0x407243
mov eax, dword [esp + 0x1c]
push esi
push edi
push eax
call fcn.00413720
mov dword [ebx], esi
add esp, 0xc
mov dword [esp + 0x10], 1
jmp 0x407215
mov edx, dword [esp + 0x14]
mov eax, 0x420090
sub edx, eax
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x407200
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x407226
push eax
call fcn.0040c278
add esp, 4
mov eax, dword [esp + 0x10]
pop ebp
mov ecx, dword [esp + 0x8e8]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040bc96
add esp, 0x8e0
ret
mov ecx, dword [esp + 0x1c]
push eax
push edi
push ecx
call fcn.00413720
add esp, 0xc
mov dword [esp + 0x10], 1
jmp 0x407215
mov edx, dword [esp + 0x14]
mov eax, 0x420090
sub edx, eax
jmp 0x407270
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x407270
jmp 0x407215
mov eax, 0x420090
mov edx, edi
sub edx, eax
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x407290
jmp 0x407226
Function at 0x407470
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
mov eax, 0x100c
call fcn.00417640
mov eax, dword [0x424044]
xor eax, esp
mov dword [esp + 0x1008], eax
mov edx, dword [ebx]
mov eax, dword [esp + 0x1010]
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_recv]
push edi
xor edi, edi
push edi
push 4
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x1c], eax
call ebp
cmp eax, 4
je 0x4074c8
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.0040bc96
add esp, 0x100c
ret
cmp dword [esp + 8], edi
jbe 0x40750b
push esi
nop
mov ecx, dword [ebx]
push 0
push 0x1000
lea eax, [esp + 0x1c]
push eax
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x40750a
mov edx, dword [esp + 0x10]
push edx
push esi
lea eax, [esp + 0x1c]
push 1
push eax
call fcn.0040cfca
add edi, esi
add esp, 0x10
mov dword [0x4be23c], edi
cmp edi, dword [esp + 0xc]
jb 0x4074d0
pop esi
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0040cdec
mov ecx, dword [esp + 0x1014]
add esp, 4
cmp edi, dword [esp + 8]
pop edi
sbb eax, eax
pop ebp
xor ecx, esp
inc eax
call fcn.0040bc96
add esp, 0x100c
ret

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

Disassembly:
sub esp, 0x214
mov eax, dword [0x424044]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push 0x206
xor esi, esi
lea ecx, [esp + 0x12]
xor eax, eax
push esi
push ecx
mov word [esp + 0x18], ax
call fcn.00412cf0
add esp, 0xc
cmp ebx, esi
je 0x407657
mov dword [esp + 4], esi
cmp edi, esi
je 0x4075ac
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x407586
sub eax, edx
sar eax, 1
je 0x4075ac
push 0x41fda4
lea edx, [esp + 8]
push edi
push edx
call fcn.0040c74b
add esp, 0xc
jmp 0x407619
cmp dword [0x425050], 3
jne 0x4075de
push 0x104
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41fd40
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.0040c5f1
add esp, 0xc
jmp 0x4075ee
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x41fdac
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.0040c5f1
push 0x41fda4
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0040c74b
add esp, 0x18
mov eax, dword [esp + 4]
cmp eax, esi
je 0x40763c
push eax
push 1
push 0x1e0
push ebx
call fcn.0040cfca
mov eax, dword [esp + 0x14]
push eax
call fcn.0040cdec
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040bc96
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040bc96
add esp, 0x214
ret
Function at 0x407670
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x424044]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push 0x206
xor ebx, ebx
lea ecx, [esp + 0x12]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x18], ax
call fcn.00412cf0
add esp, 0xc
mov dword [esp + 4], ebx
cmp edi, ebx
je 0x40777c
cmp esi, ebx
je 0x40777c
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4076c0
sub eax, edx
sar eax, 1
je 0x40777c
cmp dword [0x425050], 3
jne 0x407707
push 0x104
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41fd40
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.0040c5f1
add esp, 0xc
jmp 0x407717
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.0040c5f1
push 0x41fd9c
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0040c74b
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, ebx
je 0x40777c
push eax
push 1
push 0x1e0
push edi
call fcn.0040cd58
mov edx, dword [esp + 0x14]
push edx
call fcn.0040cdec
add esp, 0x14
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040bc96
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0040bc96
add esp, 0x214
ret

Function at 0x407900
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
xor ebx, ebx
mov esi, ecx
mov edi, eax
mov dword [esp + 0x14], ebx
call fcn.00407980
mov esi, eax
cmp esi, 0xffffffff
je 0x407973
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x14]
push eax
push edi
push ebp
push esi
call ebx
neg eax
sbb eax, eax
and eax, dword [esp + 0x10]
cmp eax, edi
mov edi, 1
je 0x407947
mov edi, dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0xc350
div ecx
push 0
lea eax, [esp + 0x18]
push eax
push edx
push ebp
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret

Function at 0x407980
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call edi
cmp eax, 0xffffffff
je 0x4079d3
push esi
call edi
cmp eax, 0xffffffff
je 0x4079ce
test al, 1
je 0x40799e
xor eax, 1
test al, 4
je 0x4079a5
xor eax, 4
test al, 2
je 0x4079ac
xor eax, 2
test al, 0x20
je 0x4079b3
xor eax, 0x20
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x4079d3
or eax, 0xffffffff
pop edi
ret
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
pop edi
ret
Function at 0x4079f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
push ebx
push ebp
mov ebx, 1
push esi
mov esi, eax
or eax, 0xffffffff
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x70], eax
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], ebx
call fcn.0040d05e
sub esi, dword [esp + 0x80]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
mov dword [esp + 0x10], esi
fmul qword [0x422180]
fild dword [esp + 0x10]
fmulp st(1)
fiadd dword [esp + 0x80]
call fcn.00419a10
mov ebp, eax
xor esi, esi
xor edi, edi
test ebp, ebp
jle 0x407b30
jmp 0x407ac0
call fcn.0040d05e
mov dword [esp + 0x80], eax
fild dword [esp + 0x80]
fmul qword [0x422180]
fmul qword [0x422190]
fadd qword [0x422188]
call fcn.00419a10
mov ecx, eax
mov eax, dword [esp + ecx*4 + 0x14]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jle 0x407b18
jmp 0x407b00
add ecx, ebx
cmp ecx, 0x1a
jne 0x407b09
xor ecx, ecx
mov eax, dword [esp + ecx*4 + 0x14]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jg 0x407b00
add esi, dword [esp + ecx*4 + 0x14]
mov eax, dword [esp + 0x84]
add ecx, 0x61
mov word [eax + edi*2], cx
add edi, ebx
cmp edi, ebp
jl 0x407ac0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
Function at 0x4098b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x4098b7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x409994
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x421b20]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x421b20]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x421b20]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x421b20]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x421b20]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x421b20]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x421b20]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x421b20]
inc ecx
sub edx, 8
sub esi, 1
jne 0x4098d0
pop edi
test edx, edx
je 0x4099bb
jmp 0x4099a0
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x421b20]
inc ecx
sub edx, 1
jne 0x4099a0
not eax
pop esi
ret

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

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x421b20]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x421b20]
mov dword [edx + 8], ecx
ret

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

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x421b20]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x421b20]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x40a120
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x40a152
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40a148
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x40a165
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.00413720
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x40a180
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x40a1b3
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40a1ad
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x40a1df
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x40a1c5
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.00413720
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x40a1f6
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x40a1f0
cmp byte [esi + 8], 0
je 0x40a1f0
or eax, 0xffffffff
add esp, 8
ret