joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003c020
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
cmp dword [edx], 0x51a65f91
je 0x1003c039
mov esi, dword [esp + 0xc]
add edx, 8
sub esi, 8
jmp 0x1003c03d
mov esi, dword [esp + 0xc]
xor ecx, ecx
mov eax, 0xfd
test esi, esi
jbe 0x1003c070
push ebx
push edi
lea edi, [eax + eax*2]
mov bl, byte [ecx + edx]
lea edi, [eax + edi*4]
shl edi, 4
add edi, eax
shl edi, 8
sub edi, eax
lea eax, [eax + edi*4 + 0x269ec3]
xor bl, al
mov byte [ecx + edx], bl
inc ecx
cmp ecx, esi
jb 0x1003c04a
pop edi
pop ebx
mov eax, dword [esp + 0x10]
push 0
push esi
push eax
push edx
call fcn.1003c340
pop esi
ret 0xc

Function at 0x1003ef00
Capabilities:
Query service status

Disassembly:
sub esp, 0x20
push edi
push closesocket
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x1003efbd
push ebx
push ebp
push esi
push closesocket
push str.ccosm
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x1003efab
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1003ef82
mov eax, dword [esp + 0x18]
cmp eax, 4
jne 0x1003ef68
push esi
xor ebx, ebx
call ebp
push edi
call ebp
pop esi
mov eax, ebx
pop ebp
pop ebx
pop edi
add esp, 0x20
ret
cmp eax, 1
jne 0x1003ef97
push esi
mov ebx, 0xfffffff6
call ebp
push edi
call ebp
pop esi
mov eax, ebx
pop ebp
pop ebx
pop edi
add esp, 0x20
ret
push esi
mov ebx, 0xfffffff5
call ebp
push edi
call ebp
pop esi
mov eax, ebx
pop ebp
pop ebx
pop edi
add esp, 0x20
ret
mov ebx, dword [esp + 0x10]
push esi
call ebp
push edi
call ebp
pop esi
mov eax, ebx
pop ebp
pop ebx
pop edi
add esp, 0x20
ret
push edi
mov ebx, 0xfffffff7
call ebp
pop esi
mov eax, ebx
pop ebp
pop ebx
pop edi
add esp, 0x20
ret
mov eax, 0xfffffff5
pop edi
add esp, 0x20
ret

Function at 0x1003efd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, 4
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp], 0
push eax
push 1
push 0
push str.SOFTWAREStorm
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1003f045
lea ecx, [esp + 8]
lea edx, [esp]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.SERVICEPORT
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1003f03a
mov dword [esp], 0
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, word [esp]
add esp, 0x10
ret
Function at 0x1003f370
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
add esp, 0x190
ret

Function at 0x1003f3a0
Capabilities:
Create udp socket

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_socket]
push 0x11
push 2
mov esi, ecx
push 2
call edi
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x1003f3d7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x276d
jne 0x1003f3d7
call fcn.1003f370
push 0x11
push 2
push 2
call edi
mov dword [esi + 4], eax
mov edx, dword [esi + 4]
xor eax, eax
cmp edx, 0xffffffff
pop edi
setne al
dec eax
pop esi
ret

Function at 0x1003f410
Capabilities:
Set socket configuration

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x1003f421
or eax, eax
pop esi
ret 8
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x1003f446
lea ecx, [esp + 0xc]
push 4
push ecx
push 0x20
push 0xffff
push eax
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
push edi
lea edi, [esi + 8]
mov eax, edi
xor edx, edx
mov ecx, dword [esp + 0xc]
mov dword [eax], edx
push ecx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov word [edi], 2
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 4]
push 0x10
push edi
push edx
mov word [esi + 0xa], ax
mov dword [esi + 0xc], 0
call dword [sym.imp.WS2_32.dll_bind]
pop edi
pop esi
ret 8
Function at 0x1003f490
Capabilities:
Check for time delay via gettickcount
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x228
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0xffffffff
je 0x1003f61d
mov dword [esp + 0x10], 0x10
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x1003f575
mov edi, dword [sym.imp.WS2_32.dll_select]
mov ebx, 1
lea ecx, [esp + 0x14]
lea edx, [esp + 0x130]
push ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x138], eax
push edx
lea ecx, [esp + 0x34]
push 0
inc eax
push ecx
push eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x144], ebx
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0xc350
call edi
cmp eax, 0xffffffff
je 0x1003f61d
test eax, eax
je 0x1003f544
mov eax, dword [esi + 4]
lea edx, [esp + 0x2c]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x1003f586
mov edx, dword [esi + 4]
lea ecx, [esp + 0x130]
push ecx
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x1003f61d
cmp dword [esp + 0x248], 0xffffffff
je 0x1003f569
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x248]
sub eax, edx
cmp ecx, eax
jle 0x1003f60c
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x1003f4ce
pop edi
pop esi
mov eax, 0xfffffffd
pop ebx
add esp, 0x228
ret 0x14
mov edx, dword [esp + 0x23c]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x23c]
push ecx
mov ecx, dword [esi + 4]
push 0
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
cmp esi, 0xffffffff
je 0x1003f5ee
test esi, esi
je 0x1003f5e0
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [esp + 0x240]
mov edx, dword [esp + 0x1e]
push edx
mov dword [ecx], eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [esp + 0x244]
mov word [ecx], ax
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x228
ret 0x14
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
jne 0x1003f5e0
pop edi
pop esi
mov eax, 0xfffffffb
pop ebx
add esp, 0x228
ret 0x14
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
add esp, 0x228
ret 0x14
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x228
ret 0x14

Function at 0x1003f630
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x10
or eax, 0xffffffff
push esi
mov esi, ecx
cmp dword [esi + 4], eax
je 0x1003f69f
mov ecx, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 4], eax
push ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_htonl]
mov edx, dword [esp + 0x24]
mov dword [esp + 8], eax
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov word [esp + 6], ax
lea eax, [esp + 4]
push 0x10
push eax
mov eax, dword [esi + 4]
push 0
push ecx
push edx
push eax
mov word [esp + 0x1c], 2
call dword [sym.imp.WS2_32.dll_sendto]
push 1
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, esi
pop esi
add esp, 0x10
ret 0x10
Function at 0x1003f6b0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x14
xor eax, eax
mov ecx, dword [ecx + 4]
mov dword [esp + 6], eax
lea edx, [esp]
mov dword [esp + 0xa], eax
push edx
mov dword [esp + 0x12], eax
mov word [esp + 8], 0
mov word [esp + 0x16], ax
lea eax, [esp + 8]
push eax
push ecx
mov dword [esp + 0xc], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1003f6fd
mov edx, dword [esp + 6]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
add esp, 0x14
ret
xor ax, ax
add esp, 0x14
ret

Function at 0x1003fcb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10072fe8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
push esi
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call fcn.1003f960
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 8]
mov dword [esp + 0x24], 0
cmp ecx, dword [eax + 8]
jb 0x1003fd09
sub esp, 0x14
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
call fcn.1003f960
lea ecx, [esp + 0x1c]
call fcn.100405b0
mov esi, dword [esp + 0x2c]
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.1003f960
lea ecx, [esp + 8]
call fcn.1003f9d0
mov ecx, dword [esp + 0x1c]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x24
ret 8

Function at 0x10040f70
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
mov ebp, ecx
cdq
push esi
lea ebx, [ebp + 0x24]
push edi
and edx, 3
mov ecx, 0x20
mov esi, 0x10089ca8
mov edi, ebx
add eax, edx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x14]
xor ecx, ecx
sar eax, 2
test eax, eax
jle 0x10040fb7
mov edx, ebx
mov ebx, dword [edx]
mov edi, ecx
and edi, 0x1f
add edx, 4
mov edi, dword [esi + edi*4]
xor ebx, edi
inc ecx
mov dword [edx - 4], ebx
cmp ecx, eax
jl 0x10040fa0
mov eax, dword [esi]
pop edi
and eax, 0x18
pop esi
mov dword [ebp + 0xb8], eax
pop ebp
pop ebx
ret 8
Function at 0x100452d0
Capabilities:
Terminate thread

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
mov dword [esi + 0x40], ebp
xor ebx, ebx
mov ecx, dword [esi + 0x5c]
cmp ecx, ebp
jne 0x100452e9
xor eax, eax
jmp 0x100452f1
mov eax, dword [esi + 0x60]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jge 0x1004532d
mov eax, dword [esi + 0x5c]
mov eax, dword [eax + ebx*4]
cmp eax, ebp
je 0x1004532a
mov eax, dword [eax + 0x94]
cmp eax, ebp
je 0x10045310
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esi + 0x5c]
mov edi, dword [ecx + ebx*4]
cmp edi, ebp
je 0x1004532a
mov ecx, edi
call fcn.10045430
push edi
call fcn.1003c010
add esp, 4
inc ebx
jmp 0x100452de
mov edx, dword [esi + 0x60]
mov ecx, dword [esi + 0x5c]
mov eax, edx
cmp eax, edx
je 0x10045347
mov edi, dword [eax]
add eax, 4
mov dword [ecx], edi
add ecx, 4
cmp eax, edx
jne 0x10045339
mov edx, dword [esi + 0x60]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x60], ecx
mov eax, dword [esi + 0x284]
mov dword [esp + 0x10], edx
cmp eax, ebp
je 0x10045392
push ebp
push ebp
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov eax, dword [esi + 0x280]
push 0xffffffffffffffff
push eax
call edi
mov ecx, dword [esi + 0x280]
push ecx
call ebx
mov dword [esi + 0x280], ebp
mov dword [esi + 0x284], ebp
mov eax, dword [esi + 0x268]
mov byte [esi + 0x271], 1
cmp eax, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateThread]
je 0x100453d3
push 0x1f4
push eax
call edi
test eax, eax
je 0x100453c0
mov edx, dword [esi + 0x268]
push 0
push edx
call ebp
mov eax, dword [esi + 0x268]
push eax
call ebx
mov dword [esi + 0x268], 0
mov eax, dword [esi + 0x26c]
mov byte [esi + 0x270], 1
test eax, eax
je 0x1004540e
push 0x1f4
push eax
call edi
test eax, eax
je 0x100453fb
mov ecx, dword [esi + 0x26c]
push 0
push ecx
call ebp
mov edx, dword [esi + 0x26c]
push edx
call ebx
mov dword [esi + 0x26c], 0
mov eax, dword [esi + 0x288]
test eax, eax
je 0x10045425
push eax
call ebx
mov dword [esi + 0x288], 0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x10045640
Capabilities:
Create thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100731e8
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
test edi, edi
je 0x100457d2
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100457d2
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x100457d2
mov eax, dword [esp + 0x40]
test eax, eax
je 0x100457d2
mov esi, dword [esp + 0x24]
mov dword [esi + 0x44], edi
mov edi, dword [esp + 0x2c]
lea edx, [esi + 0x2c]
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x280]
mov dword [esi + 0x48], ecx
mov dword [edx], edi
mov edi, dword [esp + 0x30]
test eax, eax
mov dword [edx + 4], edi
mov edi, dword [esp + 0x34]
mov dword [edx + 8], edi
mov edi, dword [esp + 0x38]
mov dword [edx + 0xc], edi
jne 0x100456ea
lea eax, [esi + 0x284]
push eax
push 0
push esi
push 0x10046d40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x280], eax
je 0x100457d2
mov ecx, dword [esi + 0x288]
or ebp, 0xffffffff
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x294]
lea edi, [esi + 0x294]
test eax, eax
jne 0x100457fa
mov dword [esp + 0x28], 0
lea edx, [esp + 0x28]
mov dword [esp + 0x1c], 0
push edx
push 0x10088090
call sym.mps.dll_CreateSTComponent
test eax, eax
jl 0x100457c0
mov eax, dword [esp + 0x28]
push edi
push 0x100883d0
push eax
mov edx, dword [eax]
call dword [edx]
test eax, eax
jl 0x100457c0
test esi, esi
je 0x10045752
lea ecx, [esi + 8]
jmp 0x10045754
xor ecx, ecx
mov eax, dword [edi]
push ecx
push 0x5431
push eax
mov edx, dword [eax]
call dword [edx + 0x28]
test esi, esi
je 0x1004576b
lea ecx, [esi + 8]
jmp 0x1004576d
xor ecx, ecx
mov eax, dword [edi]
push ecx
push 0x5432
push eax
mov edx, dword [eax]
call dword [edx + 0x28]
mov eax, dword [edi]
push 0x14ed
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
jge 0x100457e8
mov eax, dword [edi]
push 0x14ee
push eax
mov edx, dword [eax]
call dword [edx + 0xc]
test eax, eax
jge 0x100457e8
mov eax, dword [edi]
push 0x14ef
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
jge 0x100457e8
mov eax, dword [edi]
test eax, eax
je 0x100457c0
mov dword [edi], 0
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], ebp
test eax, eax
je 0x100457d2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0x20
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], ebp
test eax, eax
je 0x100457fa
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov edi, dword [edi]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x5431
mov word [esp + 0x10], 0x64
mov word [esp + 0x12], 0
mov eax, dword [edi]
push 8
push ecx
push edi
call dword [eax + 0x24]
mov al, 1
pop edi
mov ecx, dword [esp + 0x10]
mov byte [esi + 0x3c], al
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret 0x20
Function at 0x1004c110
Capabilities:
Read .ini file

Disassembly:
sub esp, 0xd4
lea eax, [esp]
push esi
mov esi, ecx
push eax
call dword [sym.imp.MSVCRT.dll_time]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll_localtime]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
add esp, 8
inc ecx
push edx
mov edx, dword [eax + 0x14]
add edx, 0x76c
push ecx
push edx
lea eax, [esp + 0x14]
push str._04d_02d_02d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
mov ecx, esi
push str.Config.ini
call fcn.1004cb50
push eax
lea ecx, [esp + 0x74]
push 0x64
push ecx
push 0x1009bcc4
push str.tablv
push str.Report
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x1004c1a3
lea edx, [esp + 0x70]
lea eax, [esp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1004c1a3
xor al, al
pop esi
add esp, 0xd4
ret
push str.Config.ini
mov ecx, esi
call fcn.1004cb50
lea ecx, [esp + 8]
push eax
push ecx
push str.tablv
push str.Report
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov al, 1
pop esi
add esp, 0xd4
ret

Function at 0x1004c9e0
Capabilities:
Get file version info

Disassembly:
mov eax, 0x200c
call fcn.1006e670
mov al, byte [0x1009bcc4]
push esi
push edi
mov byte [esp + 0x14], al
mov ecx, 0x7ff
xor eax, eax
lea edi, [esp + 0x15]
mov esi, dword [esp + 0x2018]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
push ecx
push esi
stosb byte es:[edi], al
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
je 0x1004cac2
cmp eax, 0x1fff
ja 0x1004cac2
lea edx, [esp + 0x14]
push edx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1004cac2
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push eax
push ecx
lea edx, [esp + 0x1c]
push 0x10085f04
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1004cac2
mov edx, dword [esp + 0x2020]
mov esi, dword [esp + 0x201c]
mov ecx, edx
push ebx
mov ebx, ecx
xor eax, eax
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov cx, word [eax + 0xc]
push ecx
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
push ecx
xor ecx, ecx
mov cx, word [eax + 8]
mov eax, dword [eax + 8]
shr eax, 0x10
push ecx
push eax
dec edx
push str._d._d._d._d
push edx
push esi
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x1c
mov eax, 1
pop ebx
pop edi
pop esi
add esp, 0x200c
ret 0xc
pop edi
xor eax, eax
pop esi
add esp, 0x200c
ret 0xc
Function at 0x1004cad0
Capabilities:
Check if file exists
Create directory

Disassembly:
sub esp, 0x108
push ebx
mov ebx, dword [esp + 0x110]
push ebp
push esi
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x1004cb43
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x1004cb43
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x10085f04
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrA]
mov esi, eax
test esi, esi
je 0x1004cb43
mov edx, esi
sub edx, ebx
test edx, edx
jle 0x1004cb39
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
inc edx
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x14]
push ebx
push eax
call ebp
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov cl, byte [esi + 1]
lea eax, [esi + 1]
test cl, cl
jne 0x1004cafa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 4

Function at 0x1004cb50
Capabilities:
Get common file path

Disassembly:
push esi
push edi
push 0x1009e304
push 0
push 0
push 0x23
mov edi, ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push 0x1009e304
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.Storm_
push 0x1009e304
call esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1004cb94
push eax
push 0x1009e304
call esi
push 0x1009e304
mov ecx, edi
call fcn.1004cad0
pop edi
mov eax, 0x1009e304
pop esi
ret 4
Function at 0x1004fcc0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x1004fccb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x1004fdce
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x10078634]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x10078634]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x10078634]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x10078634]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x10078634]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x10078634]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x10078634]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x10078634]
xor eax, edx
inc ecx
dec edi
jne 0x1004fce6
pop edi
test esi, esi
je 0x1004fdf0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x10078634]
xor eax, edx
inc ecx
dec esi
jne 0x1004fdd2
pop esi
pop ebx
not eax
ret

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

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov edx, dword [ecx]
and esi, 0xff
mov eax, edx
and eax, 0xff
xor eax, esi
shr edx, 8
mov eax, dword [eax*4 + 0x10078634]
xor eax, edx
mov edx, dword [ecx + 4]
mov dword [ecx], eax
and eax, 0xff
add eax, edx
mov edx, dword [ecx + 8]
imul eax, eax, 0x8088405
inc eax
mov esi, edx
mov dword [ecx + 4], eax
and esi, 0xff
shr eax, 0x18
xor eax, esi
pop esi
shr edx, 8
mov eax, dword [eax*4 + 0x10078634]
xor eax, edx
mov dword [ecx + 8], eax
ret
Function at 0x10050820
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x10050861
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10050856
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x10050874
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x14]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x1c]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x1c], ecx
pop ebp
pop ebx
ret
Function at 0x10051530
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor ebx, ebx
cmp edi, ebx
jne 0x1005154e
pop edi
pop esi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x18], ebx
jne 0x10051560
pop edi
pop esi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x7c], ebx
je 0x1005156e
push edi
call fcn.100519a0
add esp, 4
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
push edi
call fcn.10051330
add esp, 0x10
test eax, eax
je 0x10051597
pop edi
pop esi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 8
ret
mov ebp, dword [sym.imp.MSVCRT.dll_malloc]
push 0x84
call ebp
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x100515ba
pop edi
pop esi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 8
ret
push 0x4000
call ebp
mov dword [esi], eax
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x44], ecx
mov edx, dword [esp + 0x14]
add esp, 4
cmp eax, ebx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
jne 0x100515f2
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, 0xffffff98
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov dword [esi + 0x40], ebx
mov edx, dword [edi + 0x34]
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp edx, ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
sete al
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
cmp eax, ebx
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
jne 0x10051640
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
push eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.100500b0
add esp, 4
test eax, eax
jne 0x10051640
mov dword [esi + 0x40], 1
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0x44]
mov dword [esi + 0x5c], edx
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov ecx, dword [edi + 0x30]
shr ecx, 3
test cl, 1
je 0x1005166d
mov edx, dword [edi + 0x38]
shr edx, 8
mov byte [esi + 0x80], dl
jmp 0x10051679
mov eax, dword [edi + 0x3c]
shr eax, 0x18
mov byte [esi + 0x80], al
mov cl, byte [esi + 0x6c]
mov ebp, dword [esp + 0x20]
neg cl
sbb ecx, ecx
lea ebx, [esi + 0x70]
and ecx, 0xc
mov dword [esi + 0x74], 0x23456789
test ebp, ebp
mov dword [esi + 0x7c], ecx
mov dword [ebx], 0x12345678
mov dword [esi + 0x78], 0x34567890
je 0x100516b9
mov al, byte [ebp]
test al, al
je 0x100516b9
push eax
push ebx
call fcn.1004fe00
add esp, 8
inc ebp
jne 0x100516a5
mov edx, dword [edi + 0x78]
mov eax, dword [esp + 0x14]
mov dword [esi + 8], 0
lea ecx, [edx + eax + 0x1e]
xor eax, eax
mov dword [esi + 0x3c], ecx
mov dword [edi + 0x7c], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret