joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008550
Capabilities:
Encrypt data via sspi
Send data
Send data on socket

Disassembly:
sub esp, 0x4c
mov eax, dword [0x1000e020]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x58]
push ebx
push esi
push edi
mov edi, dword [esp + 0x60]
xor esi, esi
push esi
mov dword [esp + 0x18], edi
push eax
mov edi, dword [edi + 0x74]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], esi
call dword [sym.imp.lua54.dll_lua_pushboolean]
mov eax, dword [esp + 0x70]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x100086e4
push ebp
mov esi, eax
mov eax, dword [edi + 0x10]
sub esi, ebx
cmp dword [edi + 0x18], esi
cmovb esi, dword [edi + 0x18]
add eax, dword [edi + 0x14]
add eax, esi
push eax
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x100086c2
mov eax, dword [esp + 0x14]
add eax, ebx
push esi
push eax
mov eax, dword [edi + 0x10]
add eax, ebp
push eax
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [edi + 0x10]
add esp, 0xc
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], 7
lea ecx, [eax + ebp]
mov dword [esp + 0x30], ebp
mov eax, dword [edi + 0x14]
mov dword [esp + 0x40], eax
lea eax, [ecx + esi]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
push 0
push eax
mov eax, dword [esi + 0x74]
push 0
mov dword [esp + 0x44], 1
mov dword [esp + 0x48], ecx
mov dword [esp + 0x50], 6
mov dword [esp + 0x5c], 0
mov dword [esp + 0x2c], 4
mov dword [esp + 0x28], 0
push dword [eax + 0xc]
call sub.Secur32.dll_EncryptMessage
test eax, eax
js 0x100086a5
mov eax, dword [esp + 0x40]
add eax, dword [esp + 0x34]
add eax, dword [esp + 0x28]
push 0
push eax
push ebp
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x100086ac
mov esi, dword [esp + 0x10]
add esi, eax
push ebp
mov dword [esp + 0x14], esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add ebx, dword [edi + 0x18]
add esp, 4
mov eax, dword [esp + 0x6c]
cmp ebx, eax
jb 0x10008598
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.1000a106
add esp, 0x4c
ret
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebp
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.1000a106
add esp, 0x4c
ret
push 0
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [esp + 0x14]
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.1000a106
add esp, 0x4c
ret
mov ecx, dword [esp + 0x54]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000a106
add esp, 0x4c
ret
Function at 0x10008c60
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x98
mov eax, dword [0x1000e020]
xor eax, esp
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xa0]
lea ecx, [esp]
push ebx
mov ebx, dword [esp + 0xa8]
push esi
push edi
mov edi, dword [esp + 0xa8]
push 0
push ecx
push 0
push 0
push ebx
push eax
call sub.DNSAPI.dll_DnsQuery_A
mov esi, eax
test esi, esi
jne 0x10008d1b
cmp bx, 1
jne 0x10008cb9
mov eax, dword [esp + 0xc]
push dword [eax + 0x18]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
jmp 0x10008d04
cmp bx, 0x1c
jne 0x10008cfd
push 0x80
lea eax, [esp + 0x24]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x18]
add esp, 0xc
movups xmm0, xmmword [eax + 0x18]
push 0x80
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x18]
push eax
push 0x17
movups xmmword [esp + 0x20], xmm0
call sub.WS2_32.dll_inet_ntop
lea eax, [esp + 0x20]
push eax
jmp 0x10008d04
mov eax, dword [esp + 0xc]
push dword [eax + 0x18]
push edi
call dword [sym.imp.lua54.dll_lua_pushstring]
add esp, 8
push 1
push dword [esp + 0x10]
call sub.DNSAPI.dll_DnsFree
jmp 0x10008d52
cmp esi, 0x251d
je 0x10008d48
cmp esi, 0x25e5
je 0x10008d48
cmp esi, 0x232b
je 0x10008d48
push 0
push edi
call dword [sym.imp.lua54.dll_lua_pushboolean]
add esp, 8
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x10008d52
push edi
call dword [sym.imp.lua54.dll_lua_pushnil]
add esp, 4
mov ecx, dword [esp + 0xa0]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000a106
add esp, 0x98
ret

Function at 0x10009fe0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
push esi
push edi
call dword [sym.imp.lua54.dll_lua_pushlightuserdata]
push 1
push 0x10009e20
push edi
call dword [sym.imp.lua54.dll_lua_pushcclosure]
push 1
push str.Task
push edi
call dword [sym.imp.lua54.dll_lua_pushnewinstance]
push 0xffffffffffffffff
push edi
call dword [sym.imp.lua54.dll_lua_pushvalue]
add esp, 0x28
push 0
push 0
push esi
push dword [esp + 0x20]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
test eax, eax
je 0x1000a048
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.lua54.dll_lua_callk]
add esp, 0x14
pop edi
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
call dword [sym.imp.lua54.dll_luaL_getlasterror]
push 0
push 0xffffffffffffffff
push edi
call dword [sym.imp.lua54.dll_lua_tolstring]
push eax
push str.async_error_:__s
push edi
call dword [sym.imp.lua54.dll_luaL_error]
add esp, 0x20
pop edi
pop esi
ret
Function at 0x1000790c
Capabilities:
Encode data using xor

Disassembly:
cmp dword [eax - 0x3ed39269], edi
jo 0x100078c8
pop edi

Function at 0x1000796c
Capabilities:
Encode data using xor

Disassembly:
invalid
jne 0x100079b8
push ecx
or edx, ebx
cmp bh, byte [bp + si - 0x873]
div dword [0xded33307]
cmpsb byte [esi], byte es:[edi]
not dword [ebx - 0x46c94cac]
popal
inc ebx
and eax, 0x6831070c
jae 0x100079a2
sahf
popal
xchg ebx, eax
movsd dword es:[edi], dword [esi]
cmp al, 0x20
jg 0x10007961
dec edx
push ss
enter 0x5a91, 0x5d
pop ebx
stosb byte es:[edi], al
jns 0x10007999
jns 0x100079c1
int1
test eax, edx
inc ebp
xchg byte [ebp + 0x77], dl
cmpsd dword [esi], dword es:[edi]
rol byte [ebp - 0x7a], 1
push ebp
ja 0x10007946
sbb ebx, dword [esi - 0x4b]
inc edi
cmp eax, 0x10372314
js 0x100079e7
imul esp, ebx, 0xffffff9d
in eax, dx
inc esi
or al, 0x8e
js 0x100079d1
push esi
clc
inc edi
dec ebp
xlatb
xor byte [esi], bl
and edx, ecx
pop ecx
jne 0x100079ea
dec esi
xchg edi, eax
mov ecx, 0x9972e08
push esp
or al, bl
outsd dx, dword [esi]
jbe 0x10007965
sar dword [esi + esi*8], 0xa1
mov ss, word [ebx]
mov ebx, 0xb238c8a5
adc edi, dword [ebx - 0x4dc7375b]
sar byte [ecx - 0x51167d4a], cl
lahf
popfd
jns 0x100079fb
adc byte [eax - 0x36], bl
daa
mov ebp, 0x5396f7c1
not dword [esi - 0x21fb86ad]
imul ecx, ecx, 0xfffffff9
jns 0x100079f0
fisubr word [ebx - 0x37]
stc
fld st(4)
ret 0xcf80
lea ecx, [ebp - 0x18a56a34]
add ah, byte [ebx + 0x4c2844b8]
invalid

Function at 0x10052000
Capabilities:
Encode data using xor

Disassembly:
call 0x10052005
pop edx
sub edx, 0x401005
call fcn.10052669
mov eax, 0x401000
add eax, edx
sub eax, 0x52000
mov ebx, eax
add ebx, 0x3c
mov ebx, dword [ebx]
add eax, ebx
movzx eax, word [eax + 0x16]
test eax, 0x2000
je 0x100527af
mov byte [edx + 0x401445], 1
jmp 0x100527af
mov ebx, 0x40144e
add ebx, edx
push ebx
push dword fs:[0]
mov dword fs:[0], esp
call fcn.10052732
pop dword fs:[0]
pop ebx
jmp 0x100527ff
mov eax, 0x401000
add eax, edx
sub eax, 0x52000
mov ebx, eax
add ebx, 0x3c
mov ebx, dword [ebx]
add ebx, eax
mov ecx, dword [ebx]
cmp ecx, 0x4550
jne 0x10052867
movzx ecx, word [ebx + 0x54]
push esi
mov esi, eax
xor eax, eax
mov eax, dword [edx + 0x401441]
movzx ebx, byte [esi]
call fcn.100527d1
inc esi
loop 0x1005282d
pop esi
mov ecx, 0x9a00
mov ebx, 0x401000
add ebx, edx
sub ebx, 0xd000
add ebx, ecx
cmp dword [ebx - 4], eax
jne 0x10052867
push edi
mov edi, ebx
shr ecx, 2
sub edi, 4
xor dword [edi], eax
mov ebx, dword [edi]
call fcn.100527d1
loop 0x10052858
pop edi
mov ebx, 0x401000
add ebx, edx
sub ebx, 0xd000
jmp ebx
Function at 0x412565
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004123e4

Function at 0x41695c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004162ca

Function at 0x416967
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416505

Function at 0x1000678b
Capabilities:
Encode data using xor

Disassembly:
inc edi
and dword [ecx + 0x407f2f26], ecx
rcl ebx, 1
adc al, 0x77
inc edi
mov bh, 0x10
sbb esp, edx
sbb eax, 0xdbd56629
and ah, byte [ebx]
loope 0x100067ab
sub eax, 0xf15bec8d
movsd dword es:[edi], dword [esi]
invalid
Function at 0x40f980
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push edi
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.00431330
add esp, 0xc
mov dword [ebp - 0x40], esi
mov esi, dword [ebp + 8]
mov edi, 0x44a310
push 0x4019e0
mov ecx, edi
mov dword [ebp - 0x3c], pe_nt_image_headers32
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x24], 1
call fcn.00427a0a
push esi
mov ecx, edi
call fcn.00427a0a
push 0x4012d4
mov ecx, edi
call fcn.00427a0a
push 0x4012d0
mov ecx, edi
call fcn.00427a0a
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
pop edi
pop esi
test eax, eax
jne 0x40fa14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 4]
call fcn.0040ec8b
mov eax, dword [eax]
mov dword [ebp + 8], eax
push 0x442d98
lea eax, [ebp + 8]
push eax
call fcn.00430608
leave
ret 4

Function at 0x40fec7
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0x20
mov eax, 0x43f98f
call fcn.00430687
mov dword [ebp - 0x2c], ecx
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], edi
push edi
push 0x8000000
push 3
push edi
push edi
push SysReAllocString
push dword [ebp + 8]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40ff26
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 8]
call fcn.0040ec8b
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
push 0x442d98
lea eax, [ebp - 0x14]
push eax
call fcn.00430608
push edi
push edi
push edi
push 2
push edi
push ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x40ff5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 8]
call fcn.0040ec8b
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
push 0x442d98
lea eax, [ebp - 0x20]
jmp 0x40ff20
push edi
push edi
push edi
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp + 8], eax
test eax, eax
jne 0x40ff8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 8]
call fcn.0040ec8b
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
push 0x442d98
lea eax, [ebp - 0x24]
jmp 0x40ff20
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x40ffc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp + 8]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
lea ecx, [ebp + 8]
call fcn.0040ec8b
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
push 0x442d98
lea eax, [ebp - 0x28]
jmp 0x40ff20
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x2c]
push eax
push edi
mov byte [ebp - 4], 2
call fcn.0041000d
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
test ebx, ebx
je 0x40fff3
push ebx
call esi
call fcn.0043072c
ret 8
Function at 0x41000d
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
push edi
push 1
push edi
push edi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x41004b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 8]
call fcn.0040ec8b
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
push 0x442d98
lea eax, [ebp + 0xc]
push eax
call fcn.00430608
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x410078
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push esi
jmp 0x410030
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x41009f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x41006b
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0xc], 0x10
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x41008c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
leave
ret 0xc

Function at 0x4100d5
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor esi, esi
push esi
push 0x8000000
push 3
push esi
push esi
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41011d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax

Function at 0x411093
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x44a7b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x10c]
push 0x104
push eax
call fcn.004314aa
lea ecx, [ebp - 0x10c]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4110c9
sub ecx, edx
inc ecx
cmp ecx, 0x105
jae 0x41114f
push edi
mov byte [ebp + ecx - 0x10c], al
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x134]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x12c], eax
mov eax, 0x414
mov word [ebp - 0x124], ax
lea eax, [ebp - 0x134]
push eax
mov dword [ebp - 0x130], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
pop edi
test eax, eax
je 0x411154
push 0x3e3
lea ecx, [ebp - 0x114]
call fcn.0040ec8b
mov eax, dword [eax]
mov dword [ebp - 0x110], eax
push 0x442d98
lea eax, [ebp - 0x110]
push eax
call fcn.00430608
call fcn.004313aa
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004305fa
leave
ret 4
Function at 0x411c09
Capabilities:
Copy file

Disassembly:
push 0x320
mov eax, 0x43fc56
call fcn.004306bd
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x118]
push eax
push edi
call fcn.00411e2f
push 1
lea eax, [ebp - 0x118]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x411c6e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
push eax
lea ecx, [ebp - 0x32c]
call fcn.0040ec8b
mov eax, dword [eax]
mov dword [ebp - 0x328], eax
push 0x442d98
lea eax, [ebp - 0x328]
push eax
call fcn.00430608
push 3
lea eax, [ebp - 0x218]
push edi
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x21c], eax
call fcn.00412333
and dword [ebp - 4], 0
push 4
push 0
push dword [ebp - 0x21c]
call dword [0x44a56c]
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x218]
inc bl
cmp dword [ebp - 0x21c], eax
je 0x411cc2
push dword [ebp - 0x21c]
call fcn.0043040c
pop ecx
test bl, bl
je 0x411cdf
mov al, byte [ebp - 0x321]
mov byte [ebp - 0x322], al
push 0x443410
lea eax, [ebp - 0x322]
jmp 0x411c68
push 3
lea eax, [ebp - 0x31c]
push edi
lea ecx, [ebp - 0x320]
mov dword [ebp - 0x320], eax
call fcn.00412333
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], eax
push 3
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 1
call fcn.00412333
push 4
push dword [ebp - 0x320]
mov byte [ebp - 4], 2
push dword [ebp - 0x21c]
call dword [0x44a56c]
mov ebx, eax
neg ebx
sbb bl, bl
lea eax, [ebp - 0x218]
inc bl
cmp dword [ebp - 0x21c], eax
je 0x411d5a
push dword [ebp - 0x21c]
call fcn.0043040c
pop ecx
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x31c]
cmp dword [ebp - 0x320], eax
je 0x411d78
push dword [ebp - 0x320]
call fcn.0043040c
pop ecx
test bl, bl
je 0x411d98
mov al, byte [ebp - 0x321]
mov byte [ebp - 0x321], al
push 0x443410
lea eax, [ebp - 0x321]
jmp 0x411c68
call fcn.00430740
ret 8
Function at 0x419ba0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x98
mov eax, 0x440811
call fcn.004306bd
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0xa4], esi
lea ecx, [ebp - 0x90]
push 3
mov dword [ebp - 0x94], ecx
push eax
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], esi
call fcn.0040dec5
push esi
push esi
push 3
push esi
push 1
push SysReAllocString
push dword [ebp - 0x94]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
lea eax, [ebp - 0x90]
cmp dword [ebp - 0x94], eax
je 0x419c0b
push dword [ebp - 0x94]
call fcn.0043040c
pop ecx
cmp ebx, 0xffffffff
jne 0x419c3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xa0]
call fcn.0040ec8b
mov eax, dword [eax]
mov dword [ebp - 0x98], eax
push 0x442d98
lea eax, [ebp - 0x98]
push eax
call fcn.00430608
push esi
push ebx
mov dword [ebp - 0xa4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea esi, [edi + 2]
push esi
call fcn.00431325
push esi
xor esi, esi
push esi
push eax
mov dword [ebp - 0x98], eax
call fcn.00431330
add esp, 0x10
push esi
lea eax, [ebp - 0x9c]
push eax
mov dword [ebp - 0x9c], esi
mov esi, dword [ebp - 0x98]
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419c10
test ebx, ebx
je 0x419c93
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
call fcn.00430740
ret 4
Function at 0x41ab14
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp dword [edi], ecx
jne 0x41ab41
lea ecx, [ebp + 0x13]
call fcn.0041a751
mov al, byte [eax]
mov byte [ebp + 0xf], al
push 0x444468
lea eax, [ebp + 0xf]
push eax
call fcn.00430608
mov eax, dword [ebp + 0x10]
sub eax, ecx
je 0x41ab8d
dec eax
je 0x41ab76
dec eax
je 0x41ab62
lea ecx, [ebp + 0x13]
call fcn.0040fda0
mov al, byte [eax]
mov byte [ebp + 0xf], al
push 0x443368
jmp 0x41ab38
mov edx, dword [ebp + 0xc]
push 2
mov ecx, edx
pop esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41ab6d
jmp 0x41ab88
mov edx, dword [ebp + 0xc]
xor esi, esi
mov ecx, edx
inc esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41ab81
sub ecx, ebx
inc ecx
jmp 0x41aba1
push dword [ebp + 0xc]
call fcn.00431b74
pop ecx
push 4
pop esi
mov dword [ebp - 4], eax
lea edx, [ebp - 4]
mov ecx, esi
push ecx
push edx
push esi
push 0
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
test eax, eax
je 0x41abd3
push eax
lea ecx, [ebp + 0x10]
call fcn.0040ec8b
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
push 0x442d98
lea eax, [ebp + 0xc]
jmp 0x41ab3b
leave
ret 0xc

Function at 0x41b89d
Capabilities:
Hide graphical window

Disassembly:
push 0
push dword [ecx]
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x41b9d7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 8], edi
je 0x41ba03
lea ecx, [ebp - 1]
call fcn.0041a777
mov al, byte [eax]
mov byte [ebp + 0xb], al
push 0x444430
lea eax, [ebp + 0xb]
push eax
call fcn.00430608
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x41ba33
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040ec8b
mov eax, dword [eax]
mov dword [ebp + 8], eax
push 0x442d98
lea eax, [ebp + 8]
jmp 0x41b9fd
mov al, byte [ebp + 8]
mov byte [esi + 0x10], al
lea eax, [ebp - 8]
push eax
push edi
push esi
push 0x41b971
push edi
push edi
mov dword [ebp - 8], edi
call fcn.00433193
add esp, 0x18
push 0xffffffffffffffff
push dword [esi + 0xc]
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], edi
pop edi
pop esi
leave
ret 4
Function at 0x41f2d6
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x2a4
mov eax, 0x441015
call fcn.004306bd
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x2a4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x406590
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x2b0], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
je 0x41f355
mov esi, 0x44a310
push 0x406600
mov ecx, esi
call fcn.00427a0a
push 0x4012d0
mov ecx, esi
call fcn.00427a0a
push ebx
lea ecx, [ebp - 0x2ac]
call fcn.0040ec8b
mov eax, dword [eax]
mov dword [ebp - 0x2a0], eax
push 0x442d98
lea eax, [ebp - 0x2a0]
push eax
call fcn.00430608
lea eax, [ebp - 0x2a8]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push 0x406634
push dword [ebp - 0x2a4]
mov dword [ebp - 0x2a8], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x2a4]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 0x44a310
mov ecx, esi
test ebx, ebx
je 0x41f3a3
push 0x406600
jmp 0x41f31f
push 0x406644
call fcn.00427a0a
lea eax, [ebp - 0x298]
mov dword [ebp - 0x29c], eax
push 3
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x29c]
call fcn.0040dec5
push dword [ebp - 0x29c]
and dword [ebp - 4], 0
mov ecx, esi
call fcn.00427a0a
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x298]
cmp dword [ebp - 0x29c], eax
je 0x41f3fc
push dword [ebp - 0x29c]
call fcn.0043040c
pop ecx
push 0x4012d4
mov ecx, esi
call fcn.00427a0a
push 0x4012d0
mov ecx, esi
call fcn.00427a0a
and dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 7
mov word [edi], ax
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.0040dbce
mov eax, edi
call fcn.00430740
ret 4

Function at 0x41f43c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
push esi
xor esi, esi
mov dword [ebp - 4], esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x41f44c
push esi
sub ecx, edx
lea eax, [ebp - 4]
push eax
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
test eax, eax
jne 0x41f497
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 8]
call fcn.0040ec8b
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
push 0x442d98
lea eax, [ebp + 0xc]
push eax
call fcn.00430608
leave
ret 8