joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, eax
push edi
xor eax, eax
xor edi, edi
mov dword [ebp - 4], eax
cmp esi, 0xffffffff
je 0x401e58
push 0x400
call fcn.0040a901
add esp, 4
push 0x400
mov ebx, eax
push edi
push ebx
call fcn.00411f00
add esp, 0xc
push esi
call fcn.00401bd0
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], ecx
shld ecx, eax, 9
add esp, 4
shl eax, 9
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 8]
push ecx
push 0x400
push ebx
push esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
je 0x401e48
cmp dword [ebx + 4], 0x5042475f
jne 0x401dd3
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401dc2
sub eax, edx
sar eax, 1
jne 0x401e31
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 0x400
push ebx
push esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 0x3c00
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
je 0x401e48
cmp dword [ebx + 4], 0x5042475f
jne 0x401e48
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401e20
sub eax, edx
sar eax, 1
je 0x401e48
mov edi, dword [ebp + 8]
mov ecx, 0x8d
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor edi, edi
mov dword [ebp - 4], 1
cmp ebx, edi
je 0x401e55
push ebx
call fcn.0040b20b
add esp, 4
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401e60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x420044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.00411f00
add esp, 0xc
push 0x104
lea edx, [ebp - 0x210]
push edx
mov dword [ebp - 0x214], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx eax, word [ebp - 0x210]
sub eax, 0x41
push eax
lea ebx, [ebp - 0x214]
call fcn.00401ae0
mov ebx, dword [ebp - 0x214]
add esp, 4
call fcn.00401a30
cmp eax, 0xffffffff
jne 0x401ee8
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a7df
mov esp, ebp
pop ebp
ret
push esi
call fcn.00401d30
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop ebx
call fcn.0040a7df
mov esp, ebp
pop ebp
ret
Function at 0x403120
Capabilities:
Hash data using sha1
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1068
call fcn.00413d30
mov eax, dword [0x420044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0x41c308
push eax
lea eax, [ebp - 0x1064]
xor ebx, ebx
push eax
mov dword [ebp - 0x1064], ebx
call fcn.0040aa3f
mov eax, dword [ebp - 0x1064]
add esp, 0xc
cmp eax, ebx
jne 0x403181
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a7df
mov esp, ebp
pop ebp
ret
push esi
push 2
push ebx
push eax
call fcn.0040b767
mov ecx, dword [ebp - 0x1064]
push ecx
call fcn.0040b977
mov edx, dword [ebp - 0x1064]
push ebx
push ebx
push edx
mov dword [ebp - 0x1068], eax
call fcn.0040b767
mov eax, dword [ebp - 0x1064]
push eax
push 0x1000
lea ecx, [ebp - 0x1004]
push 1
push ecx
mov dword [ebp - 0x105c], ebx
mov dword [ebp - 0x1060], ebx
mov dword [ebp - 0x1058], 0x67452301
mov dword [ebp - 0x1054], 0xefcdab89
mov dword [ebp - 0x1050], 0x98badcfe
mov dword [ebp - 0x104c], 0x10325476
mov dword [ebp - 0x1048], 0xc3d2e1f0
call fcn.0040bc26
mov esi, eax
add esp, 0x2c
test esi, esi
je 0x403248
lea esp, [esp]
lea edx, [ebp - 0x1060]
push edx
push esi
lea ecx, [ebp - 0x1004]
call fcn.00402f90
mov eax, dword [ebp - 0x1064]
push eax
push 0x1000
lea ecx, [ebp - 0x1004]
push 1
push ecx
add ebx, esi
call fcn.0040bc26
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x403210
push edi
lea esi, [ebp - 0x1060]
call fcn.00403030
mov edx, dword [ebp - 0x1064]
push edx
call fcn.0040acc4
add esp, 8
pop esi
cmp ebx, dword [ebp - 0x1068]
jb 0x403162
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0040a7df
mov esp, ebp
pop ebp
ret
Function at 0x403290
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9b8
mov eax, dword [0x420044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0x806]
push edx
mov dword [ebp - 0x9b4], eax
mov word [ebp - 0x808], cx
call fcn.00411f00
xor eax, eax
add esp, 0xc
lea esi, [ebp - 0x808]
cmp edi, eax
je 0x4032dc
mov esi, edi
lea edx, [ebp - 0x9a8]
push edx
xor ecx, ecx
push 0x101
mov word [esi], cx
mov dword [ebp - 0x9ac], eax
mov dword [ebp - 0x9b0], eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x403348
push 0x41c310
push 0x3ff
push esi
call fcn.0040a7ee
push 0x41c330
push 0x3ff
push esi
call fcn.0040b275
push 0x41c334
push 0x3ff
push esi
call fcn.0040b275
add esp, 0x24
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a7df
mov esp, ebp
pop ebp
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x403303
mov edi, dword [ebp - 0x9b4]
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4033ea
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [ebp - 0x9ac], eax
push 4
lea eax, [ebp - 0x9ac]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
jne 0x4033ea
push 0x41c310
push 0x3ff
push esi
call fcn.0040a7ee
push 0x41c330
push 0x3ff
push esi
call fcn.0040b275
push 0x41c334
push 0x3ff
push esi
call fcn.0040b275
mov eax, dword [ebx]
add esp, 0x24
test eax, eax
je 0x4033d4
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx], 0
mov eax, dword [ebp - 0x9b0]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a7df
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov edx, dword [ebp + 0xc]
mov ecx, 2
push edx
mov dword [ebp - 0x814], eax
mov word [ebp - 0x818], cx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebx]
mov word [ebp - 0x816], ax
push 0x10
lea eax, [ebp - 0x818]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x403434
push 0x41c374
jmp 0x403393
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x9b0], 1
mov eax, dword [ebp - 0x9b0]
pop edi
xor ecx, ebp
pop esi
call fcn.0040a7df
mov esp, ebp
pop ebp
ret
Function at 0x403460
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
xor eax, eax
push ebx
push esi
mov dword [ebp - 4], eax
cmp dword [ecx], eax
je 0x4034dc
cmp edi, eax
jle 0x403486
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax + ecx]
not dl
mov byte [eax + ecx], dl
inc eax
cmp eax, edi
jl 0x403476
lea ebx, [edi + 7]
push ebx
call fcn.0040a901
mov esi, eax
lea eax, [edi + 5]
mov word [esi], ax
mov ecx, dword [str.AS101]
mov eax, dword [ebp + 0xc]
mov dword [esi + 2], ecx
mov dl, byte [0x420fb4]
push edi
push eax
lea ecx, [esi + 7]
push ecx
mov byte [esi + 6], dl
call fcn.0040e3d0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
add esp, 0x10
push 0
push ebx
push esi
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4034df
cmp eax, ebx
jne 0x4034df
mov dword [ebp - 4], 1
jmp 0x4034df
mov esi, dword [ebp + 8]
test esi, esi
je 0x4034ec
push esi
call fcn.0040b20b
add esp, 4
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403660
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8e0
mov eax, dword [0x420044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, edx
xor edx, edx
push 0x7fe
mov dword [ebp - 0x8d8], eax
push edx
lea eax, [ebp - 0x8ca]
push eax
mov dword [ebp - 0x8dc], edi
mov dword [ebp - 0x8e0], ecx
mov word [ebp - 0x8cc], dx
call fcn.00411f00
add esp, 0xc
lea ebx, [ebp - 0x8cc]
mov dword [ebp - 0x8d4], ebx
test esi, esi
je 0x4036c6
mov dword [ebp - 0x8d4], esi
mov ebx, esi
xor ecx, ecx
mov word [ebx], cx
mov esi, dword [edi]
xor eax, eax
mov dword [ebp - 0x8d0], eax
test esi, esi
je 0x40380b
cmp dword [ebp - 0x8d8], eax
je 0x40380b
push 0xc7
push eax
lea edx, [ebp - 0xcb]
push edx
mov byte [ebp - 0xcc], al
call fcn.00411f00
add esp, 0xc
push 0
push 2
lea eax, [ebp - 0xcc]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x403857
test eax, eax
je 0x403857
movzx edi, word [ebp - 0xcc]
lea ecx, [edi + 2]
push ecx
xor esi, esi
call fcn.0040a901
add esp, 4
mov ebx, eax
test edi, edi
jle 0x4037f8
mov ecx, dword [ebp - 0x8dc]
push 0
mov edx, edi
sub edx, esi
push edx
mov edx, dword [ecx]
lea eax, [esi + ebx]
push eax
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4037d9
test eax, eax
je 0x4037d9
add esi, eax
cmp edi, esi
jg 0x403746
cmp esi, 5
jl 0x4037f8
mov ecx, dword [str.AS101]
sub esi, 5
cmp ecx, dword [ebx]
jne 0x40383c
mov dl, byte [ebx + 4]
cmp dl, byte [0x420fb4]
jne 0x40383c
test esi, esi
jle 0x4037ab
lea eax, [ebx + 5]
mov edi, esi
mov cl, byte [eax]
not cl
mov byte [eax], cl
inc eax
dec edi
jne 0x4037a1
mov edi, dword [ebp - 0x8e0]
mov eax, dword [edi]
cmp eax, esi
jl 0x40381c
mov eax, dword [ebp - 0x8d8]
push esi
lea edx, [ebx + 5]
push edx
push eax
call fcn.0040e3d0
mov dword [edi], esi
add esp, 0xc
mov dword [ebp - 0x8d0], 1
jmp 0x4037f8
mov eax, dword [ebp - 0x8d4]
push 0x41c398
push 0x3ff
push eax
call fcn.0040a7ee
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
je 0x403805
push ebx
call fcn.0040b20b
add esp, 4
mov eax, dword [ebp - 0x8d0]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a7df
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x8d8]
push eax
lea ecx, [ebx + 5]
push ecx
push edx
call fcn.0040e3d0
add esp, 0xc
mov dword [ebp - 0x8d0], 1
jmp 0x4037f8
mov eax, dword [ebp - 0x8d4]
push 0x41c398
push 0x3ff
push eax
call fcn.0040a7ee
add esp, 0xc
jmp 0x4037f8
push 0x41c398
push 0x3ff
push ebx
call fcn.0040a7ee
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x8d0]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a7df
mov esp, ebp
pop ebp
ret
Function at 0x403aa0
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:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00413d30
mov eax, dword [0x420044]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebx]
mov eax, dword [ebp + 8]
push edi
xor edi, edi
push edi
push 4
lea ecx, [ebp - 0x1008]
push ecx
push edx
mov dword [ebp - 0x100c], eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 4
je 0x403aec
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a7df
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1008], edi
jbe 0x403b3e
push esi
mov ecx, dword [ebx]
push 0
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
je 0x403b3d
mov edx, dword [ebp - 0x100c]
mov eax, dword [edx]
push eax
push esi
lea ecx, [ebp - 0x1004]
push 1
push ecx
call fcn.0040abdd
add edi, esi
add esp, 0x10
mov dword [0x422640], edi
cmp edi, dword [ebp - 0x1008]
jb 0x403af5
pop esi
mov edx, dword [ebp - 0x100c]
mov eax, dword [edx]
push eax
call fcn.0040acc4
mov ecx, dword [ebp - 4]
add esp, 4
cmp edi, dword [ebp - 0x1008]
pop edi
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.0040a7df
mov esp, ebp
pop ebp
ret

Function at 0x404050
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x420044]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x206
xor edi, edi
lea ecx, [ebp - 0x20a]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x20c], ax
call fcn.00411f00
add esp, 0xc
mov dword [ebp - 0x210], edi
cmp esi, edi
je 0x404146
cmp dword [0x420f30], 3
jne 0x4040c8
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41c29c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040b275
add esp, 0xc
jmp 0x4040da
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.golfset.ini
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.0040b275
push 0x41c308
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.0040aa3f
mov eax, dword [ebp - 0x210]
add esp, 0x18
cmp eax, edi
je 0x404146
push eax
push 1
push 0x200
push esi
call fcn.0040bc26
mov edx, dword [ebp - 0x210]
push edx
call fcn.0040acc4
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a7df
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0040a7df
mov esp, ebp
pop ebp
ret
Function at 0x404160
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x420044]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x206
xor edi, edi
lea ecx, [ebp - 0x20a]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x20c], ax
call fcn.00411f00
add esp, 0xc
mov dword [ebp - 0x210], edi
cmp esi, edi
je 0x40421a
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.golfinfo.ini
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040b275
push 0x41c308
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.0040aa3f
mov eax, dword [ebp - 0x210]
add esp, 0x18
cmp eax, edi
je 0x40421a
push eax
push 1
push 0x200
push esi
call fcn.0040bc26
mov eax, dword [ebp - 0x210]
push eax
call fcn.0040acc4
add esp, 0x14
lea eax, [edi + 1]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a7df
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0040a7df
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x420044]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40430a
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040a7df
mov esp, ebp
pop ebp
ret
cmp dword [eax], 0x504d534d
jne 0x4042fa
push 0x200
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0040bcc0
add esp, 0xc
xor eax, eax
lea esp, [esp]
mov cl, byte [ebp + eax - 0x414]
not cl
mov byte [ebp + eax - 0x414], cl
inc eax
cmp eax, 0x200
jb 0x404330
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x212]
push eax
mov word [ebp - 0x214], dx
call fcn.00411f00
add esp, 0xc
lea ecx, [ebp - 0x214]
push ecx
push 0x104
mov dword [ebp - 0x418], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.golfinfo.ini
lea edx, [ebp - 0x214]
push 0x104
push edx
call fcn.0040b275
push 0x41c26c
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x418]
push ecx
call fcn.0040aa3f
mov eax, dword [ebp - 0x418]
add esp, 0x18
test eax, eax
je 0x4043e0
push eax
push 1
lea edx, [ebp - 0x414]
push 0x200
push edx
call fcn.0040abdd
mov eax, dword [ebp - 0x418]
push eax
call fcn.0040acc4
add esp, 0x14
mov ecx, dword [ebp - 8]
xor ecx, ebp
mov eax, 1
call fcn.0040a7df
mov esp, ebp
pop ebp
ret

Function at 0x404400
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 0x404453
push esi
call edi
cmp eax, 0xffffffff
je 0x40444e
test al, 1
je 0x40441e
xor eax, 1
test al, 4
je 0x404425
xor eax, 4
test al, 2
je 0x40442c
xor eax, 2
test al, 0x20
je 0x404433
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 0x404453
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 0x404470
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x420044]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x108]
push eax
push 0x104
mov dword [ebp - 0x314], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str._uinsey.bat
lea ecx, [ebp - 0x108]
push 0x104
push ecx
call fcn.0040c19b
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x310]
push 0x104
push ecx
call fcn.0040b216
lea edx, [ebp - 0x310]
push 0x5c
push edx
call fcn.0040c150
add esp, 0x14
test eax, eax
je 0x4044fc
mov byte [eax], 0
push ebx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4045fb
mov eax, str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_nrmdir___s__r_ndel___s_
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404530
sub eax, edx
push esi
push edi
mov edi, eax
lea eax, [ebp - 0x20c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404546
sub eax, edx
mov ecx, eax
lea eax, [ebp - 0x108]
lea esi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404560
sub eax, esi
lea edx, [eax + ecx*2]
add edx, ecx
lea edi, [edx + edi + 0x32]
push edi
call fcn.0040a901
push edi
mov esi, eax
push 0
push esi
call fcn.00411f00
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x310]
push ecx
lea edx, [ebp - 0x20c]
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.0040c17d
mov eax, esi
add esp, 0x2c
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4045b0
push 0
sub eax, ecx
lea ecx, [ebp - 0x314]
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, [ebp - 0x108]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test esi, esi
je 0x4045f9
push esi
call fcn.0040b20b
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a7df
mov esp, ebp
pop ebp
ret
Function at 0x4064f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x4064f7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x4065cd
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 + 0x41de50]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41de50]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41de50]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41de50]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41de50]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41de50]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41de50]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41de50]
add ecx, 8
sub edx, 8
dec esi
jne 0x406510
pop edi
test edx, edx
je 0x4065ea
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x41de50]
inc ecx
dec edx
jne 0x4065d1
not eax
pop esi
ret

Function at 0x4065f0
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 + 0x41de50]
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 + 0x41de50]
mov dword [edx + 8], ecx
ret

Function at 0x406640
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 + 0x41de50]
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 + 0x41de50]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x406d60
Capabilities:
Read file on windows

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x406e03
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 1]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406dfe
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x406e2e
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x406e15
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [ebp - 1]
push eax
call fcn.0040e3d0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x406e43
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x406e3d
cmp byte [esi + 8], 0
je 0x406e3d
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret