joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001480
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push esi
push eax
push 0x20019
push 0
push str.SOFTWAREElectronic_ArtsEA_GAMESBattlefield_1942ergc
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100014ba
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or ax, 0xffff
pop esi
add esp, 8
ret 4
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 4]
lea edx, [esp + 8]
mov dword [esp + 8], 0x17
push edx
push esi
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x100014f3
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or ax, 0xffff
pop esi
add esp, 8
ret 4
cmp byte [esi], 0
jne 0x10001503
or ax, 0xffff
pop esi
add esp, 8
ret 4
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, 1
pop esi
add esp, 8
ret 4

Function at 0x10001520
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10
mov eax, dword [str.REG_SZ]
mov cx, word [0x100050a0]
mov dl, byte [0x100050a2]
mov dword [esp + 4], eax
xor eax, eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov word [esp + 0xf], ax
mov byte [esp + 0x11], al
mov eax, dword [esp + 0x1c]
push esi
or esi, 0xffffffff
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
mov word [esp + 0x14], cx
mov byte [esp + 0x16], dl
mov dword [esp + 0xc], 1
je 0x100015e3
lea ecx, [esp + 0xc]
lea edx, [esp + 0x24]
push ecx
push edx
push 0
push 0xf003f
lea eax, [esp + 0x20]
push 0
push eax
push 0
push str.SOFTWAREElectronic_ArtsEA_GAMESBattlefield_1942ergc
push closesocket
call edi
test eax, eax
je 0x100015b1
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
or ax, 0xffff
pop ebx
add esp, 0x10
ret 0x10
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
push 0x16
push edx
push 1
push 0
push 0
push eax
call ebx
test eax, eax
je 0x100015e1
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
or ax, 0xffff
pop ebx
add esp, 0x10
ret 0x10
xor esi, esi
lea edx, [esp + 0xc]
lea eax, [esp + 0x24]
push edx
push eax
push 0
push 0xf003f
lea ecx, [esp + 0x20]
push 0
push ecx
push 0
push str.SOFTWAREEA_GAMESBattlefield_1942
push closesocket
call edi
test eax, eax
je 0x10001625
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
or ax, 0xffff
pop ebx
add esp, 0x10
ret 0x10
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push eax
push ecx
push 1
push 0
push str.LANGUAGE
push edx
call ebx
test eax, eax
je 0x1000165b
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
or ax, 0xffff
pop ebx
add esp, 0x10
ret 0x10
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0x10
Function at 0x10001700
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1000501c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x10001723
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call edi
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push esi
mov ebx, eax
call edi
mov ecx, dword [0x10036ff8]
add esp, 0x1c
mov dword [0x10005284], ebx
push 0xb
push 1
push 0x201
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x10005280]
mov edx, dword [esp + 0x14]
push esi
push ebx
lea edi, [eax + 0x10006040]
push 1
push edi
mov dword [edx], eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
test eax, eax
jne 0x1000178b
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
ret
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov al, byte [esp + 0x1c]
add esp, 4
cmp al, 1
jne 0x100017b4
lea ecx, [ebx - 1]
xor eax, eax
test ecx, ecx
jl 0x100017b4
mov dl, byte [eax + edi]
xor dl, 0x4a
mov byte [eax + edi], dl
inc eax
cmp eax, ecx
jle 0x100017a6
pop edi
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x100018e0
Capabilities:
Create thread
Encode data using xor
Query or enumerate registry value

Disassembly:
sub esp, 8
push edi
push 1
push 0x10036fc4
push str.res_PW11.PWDB
call fcn.10001700
push 1
push 0x10036fc8
push str.res_PW12.PWDB
call fcn.10001700
push 1
push 0x10036fcc
push str.res_PW13.PWDB
call fcn.10001700
push 1
push 0x10036fd0
push str.res_PW21.PWDB
call fcn.10001700
push 0
push 0x10036fd4
push str.res_PWfile.PWDB
call fcn.10001700
push 0
push 0x10036fd8
push str.res_PWseg.PWDB
call fcn.10001700
add esp, 0x48
push 0
push 0x10036fdc
push str.res_PWzone.PWDB
call fcn.10001700
push 0
push 0x10036fe0
push str.res_PWdyn.PWDB
mov dword [0x10006018], eax
call fcn.10001700
push 0
push 0x10036fe4
push str.res_PWdyn.PWDB
call fcn.10001700
mov eax, dword [0x10036fc4]
mov edx, dword [0x10036fc8]
mov edi, dword [sym.imp.MSVCRT.dll__beginthread]
push 0
lea ecx, [eax + 0x10006040]
lea eax, [edx + 0x10006040]
mov dword [0x100052d4], ecx
mov ecx, dword [0x10036fcc]
mov dword [0x100052d8], eax
mov eax, dword [0x10036fd0]
lea edx, [ecx + 0x10006040]
push 0
mov dword [0x100052dc], edx
mov edx, dword [0x10036fd4]
lea ecx, [eax + 0x10006040]
push 0x10001890
lea eax, [edx + 0x10006040]
mov dword [0x100052e0], ecx
mov ecx, dword [0x10036fd8]
mov dword [0x100052e4], eax
mov eax, dword [0x10036fdc]
lea edx, [ecx + 0x10006040]
lea ecx, [eax + 0x10006040]
mov dword [0x100052e8], edx
mov edx, dword [0x10036fe0]
mov dword [0x100052ec], ecx
mov ecx, dword [0x10036fe4]
lea eax, [edx + 0x10006040]
lea edx, [ecx + 0x10006040]
mov dword [0x100052f0], eax
mov dword [0x100052f4], edx
call edi
add esp, 0x30
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SOFTWAREElectronic_ArtsEA_GAMESBattlefield_1942ergc
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10001a69
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or ax, 0xffff
pop edi
add esp, 8
ret
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push 0x10005204
push 0
push eax
mov dword [esp + 0x18], 0x17
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x10001aa0
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or ax, 0xffff
pop edi
add esp, 8
ret
mov edx, dword [esp + 4]
push esi
push edx
mov byte [0x100052c4], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov esi, 0x10005205
mov al, byte [esi - 1]
mov dl, 0xa
add al, 0x18
add esi, 2
imul dl
mov dl, byte [esi - 2]
add al, dl
mov edx, dword [0x1000502c]
mov byte [edx + ecx], al
mov eax, dword [0x1000502c]
mov dl, byte [eax + ecx]
xor dl, 0x4a
mov byte [eax + ecx], dl
inc ecx
cmp esi, 0x10005219
jle 0x10001aba
push 0
push 0
push 0x100017c0
mov byte [0x10005030], 1
call edi
mov al, byte [0x100052fe]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
cmp al, 0xa
jae 0x10001b1c
push 0x32
call esi
cmp byte [0x100052fe], 0xa
jb 0x10001b0f
mov al, byte [0x100052c4]
mov byte [0x10005030], 0
cmp al, 1
jne 0x10001b39
push 0x32
call esi
cmp byte [0x100052c4], 1
je 0x10001b2c
pop esi
mov ax, 1
pop edi
add esp, 8
ret
Function at 0x10001b70
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov eax, dword [0x10005024]
push esi
mov edx, ebp
lea esi, [ebp + ebp*4]
and edx, 0xffff
push edi
push edx
lea esi, [esi + esi*4]
push 1
shl esi, 3
push 0x201
lea ecx, [esi + eax]
mov eax, dword [0x10036ff8]
push eax
mov dword [ebp*8 + 0x1000522c], ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp*8 + 0x10005228]
mov edx, esi
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
sub edx, ecx
mov ecx, dword [0x10005024]
add ecx, edx
add eax, 0x10006040
mov ebx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [0x10005024]
xor ecx, ecx
lea esi, [edx + esi - 1]
test esi, esi
jl 0x10001c05
mov bl, byte [ecx + eax]
xor bl, 0x4a
mov byte [ecx + eax], bl
mov esi, dword [0x10005024]
inc ecx
lea esi, [edx + esi - 1]
cmp ecx, esi
jle 0x10001bed
mov eax, dword [0x100052ac]
mov edx, dword [ebp*8 + 0x10005228]
pop edi
pop esi
mov dword [eax + ebp*4], edx
mov al, byte [0x100052fd]
pop ebp
cmp al, 0xa
pop ebx
je 0x10001c37
mov edx, dword [0x10005028]
xor ecx, ecx
mov cl, al
mov al, byte [esp + 0xc]
mov byte [ecx + edx], al
mov al, byte [0x100052fd]
inc al
mov byte [0x100052fd], al
ret 0xc

Function at 0x10001c50
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push esi
push edi
mov edi, dword [esp + 0x14]
lea ebx, [eax + 1]
mov esi, 0x1000602c
mov ecx, dword [esi]
mov edx, dword [0x10036ffc]
imul ecx, ebx
add ecx, edi
and ecx, 0xffff
push ecx
push 1
push 0x202
push edx
call ebp
mov eax, dword [0x1000601c]
mov ecx, dword [0x10006010]
mov edx, eax
mov dword [esi], eax
xor edx, ecx
mov dword [esi], edx
add esi, 4
cmp esi, 0x10006038
jle 0x10001c6a
mov ecx, dword [0x10006028]
movsx esi, di
cmp ecx, esi
mov edx, ecx
jl 0x10001cb9
mov edx, dword [esp + 0x18]
cmp ecx, esi
jl 0x10001cdd
movsx edi, word [esp + 0x18]
mov eax, edi
shl eax, 5
add eax, edi
lea ebx, [esi + eax*2]
add eax, ebx
cmp ecx, eax
jg 0x10001cdd
mov eax, ecx
sub eax, esi
cdq
idiv edi
lea edx, [eax + ecx + 1]
movsx edi, word [esp + 0x18]
mov eax, edi
shl eax, 5
add eax, edi
lea esi, [esi + eax*2]
add eax, esi
cmp ecx, eax
jle 0x10001cf5
lea edx, [ecx + 0x64]
and edx, 0xffff
push edx
mov edx, dword [0x10036ffc]
push 1
push 0x202
push edx
call ebp
mov eax, dword [0x1000601c]
pop edi
pop esi
pop ebp
mov dword [0x10006028], eax
mov byte [0x1000603c], 2
pop ebx
ret 8
Function at 0x10002010
Capabilities:
Create thread

Disassembly:
push ecx
mov al, byte [esp + 0x14]
mov cl, byte [esp + 0x18]
mov dl, byte [esp + 0x1c]
push ebx
push ebp
push esi
push edi
xor esi, esi
push 0x70
mov byte [0x1000603c], 0
mov dword [0x100052d0], esi
mov byte [0x100052fd], 0
mov byte [0x100052fe], 0
mov byte [0x10006008], al
mov byte [0x10005021], cl
mov byte [0x10005023], dl
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, dword [esp + 0x1c]
mov ebp, eax
push str.net1.dll
mov dword [ebp], ebx
mov eax, dword [0x10006010]
mov dword [ebp + 4], eax
call fcn.100010b0
mov edx, dword [esp + 0x24]
mov dword [ebp + 8], eax
mov ecx, dword [0x10006014]
mov eax, dword [esp + 0x28]
add esp, 8
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], edx
mov dword [ebp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov dword [ebp + 0x1c], esi
mov dword [ebp + 0x20], esi
mov dword [ebp + 0x24], esi
lea edi, [ebp + 0x28]
mov ecx, 0x11
mov esi, 0x10036f7c
mov word [ebp + 0x18], ax
mov eax, dword [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x1c]
xor ebx, ecx
lea ecx, [esp + 0x10]
xor ebx, eax
push ecx
movsw word es:[edi], word [esi]
push str.srvlist_recom.ini
mov dword [0x1000600c], ebx
call fcn.10001130
lea edx, [esp + 0x34]
mov bl, al
push edx
push str.SrvSite.inf
call fcn.10001130
mov byte [esp + 0x34], al
lea eax, [esp + 0x38]
push eax
push str.SrvMsg.txt
call fcn.10001130
mov cl, byte [0x10005022]
mov dl, byte [0x10005023]
mov byte [0x100051fa], al
mov al, byte [esp + 0x3c]
mov byte [0x100051f8], cl
mov byte [0x100051f9], dl
mov byte [0x100051fb], al
mov eax, dword [esp + 0x40]
xor edx, edx
mov ecx, 0xff
div ecx
mov eax, dword [esp + 0x44]
mov dword [0x100051f0], 0
mov dword [0x100051f4], 0x4c4c4152
mov byte [0x100051fe], bl
mov byte [0x100051fc], dl
xor edx, edx
div ecx
mov ecx, dword [0x10005024]
mov byte [0x100051fd], dl
mov eax, 0x51eb851f
push ebp
imul ecx
sar edx, 5
mov eax, edx
push 0
shr eax, 0x1f
add edx, eax
push 0x10002190
mov byte [0x100051ff], dl
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0x24
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x18
Function at 0x10002df0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
push 2
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [esp + 0x10]
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10002e7e
mov ebp, dword [esp + 0x13c]
mov esi, ebp
lea eax, [esp + 0x34]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x10002e4e
test cl, cl
je 0x10002e4a
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x10002e4e
add eax, 2
add esi, 2
test cl, cl
jne 0x10002e2a
xor eax, eax
jmp 0x10002e53
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10002e7a
lea eax, [esp + 0x10]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10002e24
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x128
ret
mov ebx, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x128
ret

Function at 0x10002ea0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10002ed8
mov ax, word [esp]
cmp al, 1
jne 0x10002ed2
xor ecx, ecx
mov cl, ah
cmp cl, al
jne 0x10002ed2
add esp, 0x190
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
add esp, 0x190
ret

Function at 0x10002ef0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x10002f00
ret
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov ecx, dword [edx]
mov eax, ecx
sub eax, 0x101a8c0
neg eax
sbb eax, eax
and eax, ecx
ret

Function at 0x10002f20
Capabilities:
Connect socket

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_htons]
push esi
mov esi, dword [esp + 0x28]
push edi
mov edi, dword [esp + 0x24]
push esi
call fcn.10002ef0
add esp, 4
test eax, eax
jne 0x10002f52
cmp esi, dword [esp + 0x2c]
jne 0x10002f83
mov esi, dword [esp + 0x30]
jmp 0x10002f39
push ebx
mov dword [esp + 0x18], eax
mov word [esp + 0x14], 2
call ebp
mov word [esp + 0x12], ax
lea eax, [esp + 0x10]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x10002f9b
cmp esi, dword [esp + 0x2c]
jne 0x10002f8e
mov esi, dword [esp + 0x30]
jmp 0x10002f39
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x10
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
Function at 0x10002fb0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x1c]
xor esi, esi
mov eax, edi
push 0
sub eax, esi
lea ecx, [esi + ebx]
push eax
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_send]
add esi, eax
cmp esi, edi
jge 0x10002fea
test esi, esi
jle 0x10002fe8
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10002fc2
cmp esi, edi
pop edi
pop esi
pop ebp
pop ebx
sete al
ret

Function at 0x10003060
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x1c]
xor esi, esi
mov eax, edi
push 0
sub eax, esi
lea ecx, [esi + ebx]
push eax
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_recv]
add esi, eax
cmp esi, edi
jge 0x1000309a
test esi, esi
jle 0x10003098
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10003072
cmp esi, edi
pop edi
pop esi
pop ebp
pop ebx
sete al
ret
Function at 0x10003140
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 8
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push 8
push eax
push ecx
call fcn.100030b0
add esp, 0xc
test eax, eax
jge 0x1000316a
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10003185
cmp dword [esp + 0x10], eax
jbe 0x10003185
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x20]
push 0x100051ec
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, dword [esp + 0x18]
add esp, 8
test esi, esi
mov ebp, eax
jne 0x100031b6
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x14]
mov eax, esi
xor edx, edx
div ecx
xor edx, edx
mov edi, eax
mov eax, esi
div ecx
inc ecx
push ecx
mov ebx, edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
test edi, edi
mov dword [esp + 0x24], 0
jbe 0x10003220
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push ecx
push esi
push eax
call fcn.100030b0
add esp, 0xc
test eax, eax
jl 0x10003249
mov ecx, dword [esp + 0x14]
push ebp
push ecx
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
mov ecx, dword [esp + 0x24]
add esp, 0x10
cmp eax, ecx
jne 0x1000325f
mov eax, dword [esp + 0x24]
inc eax
cmp eax, edi
mov dword [esp + 0x24], eax
jb 0x100031e6
mov edx, dword [esp + 0x1c]
push ebx
push esi
push edx
call fcn.100030b0
add esp, 0xc
test eax, eax
jge 0x10003275
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 0xfffffffb
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 0xfffffffd
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 0xfffffffc
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push ebp
push ebx
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, ebx
je 0x1000329d
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 0xfffffffa
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x18]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x401580
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x415004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x4015c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [0x41585c], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004017ff
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x401606
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [0x41585c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x41585c]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004017ff
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [ebp + 0x10]
lea esp, [esp]
mov eax, esi
lea ecx, [ebp - 0x20c]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40163e
test dx, dx
je 0x40163a
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40163e
add ecx, 4
add eax, 4
test dx, dx
jne 0x401618
xor eax, eax
jmp 0x401643
sbb eax, eax
or eax, 1
test eax, eax
je 0x40166f
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x401610
mov eax, dword [0x41585c]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004017ff
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [ebp - 0x228]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004012e0
add esp, 4
test al, al
jne 0x4016a0
mov eax, dword [0x41585c]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004017ff
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004017ff
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40f6d0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x69b480], eax
xor eax, eax
nop
add eax, 1
mov ecx, dword [eax*4 + 0x69b47c]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul edx, edx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x69b480], edx
cmp eax, 0x26f
jl 0x40f6d8
mov dword [0x5d7050], 0x270
ret

Function at 0x40f710
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov eax, 0xffffffff
mov esi, esi
add eax, 1
mov ecx, dword [eax*4 + 0x69b484]
mov ebx, dword [eax*4 + 0x69b480]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x69bab4]
mov dword [eax*4 + 0x69b480], edx
cmp eax, 0xe2
jl 0x40f718
mov eax, 0xe2
lea esi, [esi]
add eax, 1
mov ecx, dword [eax*4 + 0x69b484]
mov ebx, dword [eax*4 + 0x69b480]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x69b0f4]
mov dword [eax*4 + 0x69b480], edx
cmp eax, 0x26e
jl 0x40f768
mov edx, dword [0x69b480]
mov ecx, dword [0x69be3c]
mov eax, edx
and eax, 1
neg eax
and eax, 0x9908b0df
and ecx, 0x80000000
and edx, 0x7fffffff
or ecx, edx
shr ecx, 1
xor eax, ecx
xor eax, dword [0x69bab0]
mov dword [0x69be3c], eax
mov dword [0x5d7050], 0
pop ebx
ret

Function at 0x40f7f0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, dword [0x5d7050]
add dword [0x5d7050], 1
mov eax, dword [0x69a030]
cmp eax, dword [0x5d67a0]
jne 0x40f813
cmp ebx, 0x271
jb 0x40f834
mov eax, dword [0x69a030]
call fcn.0040f6d0
not dword [0x69a030]
mov eax, dword [0x69a030]
mov dword [0x5d67a0], eax
mov ebx, 0x270
mov esi, esi
cmp ebx, 0x270
jne 0x40f850
call fcn.0040f710
xor ebx, ebx
mov dword [0x5d7050], 1
lea esi, [esi]
mov edx, dword [ebx*4 + 0x69b480]
mov eax, edx
shr eax, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor edx, eax
mov ecx, edx
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop ebx
ret
Function at 0x411370
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x5d64e0]
cmp ax, 0xcb
je 0x41147c
cmp ax, 0xcc
je 0x41147c
lea esi, [esi]
mov edx, dword [0x69c080]
test edx, edx
je 0x4113a5
mov eax, dword [0x69bf30]
call edx
mov ebx, eax
jmp 0x4113aa
mov ebx, 0x69bf34
cmp word [0x69bf20], 0
jle 0x4113d0
mov eax, 0x69bf00
call fcn.00411630
mov eax, ebx
call fcn.00410f30
mov eax, ebx
call fcn.00410fa0
lea esi, [esi]
mov edi, dword [ebx]
jmp 0x4113f2
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x4113ed
mov edx, edi
mov eax, ebx
call fcn.004103a0
jmp 0x4113f0
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x4113d8
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x69bf20], 0
jle 0x41147c
mov edx, 0x69be40
mov eax, ebx
call fcn.004104e0
mov edi, eax
test edi, edi
je 0x41144c
mov eax, dword [0x69bed4]
mov dword [edi + 0xc], eax
cmp dword [0x69bed4], 0
je 0x411440
mov eax, dword [0x69bed4]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x69bed4], eax
nop
sub word [0x69bf20], 1
cmp word [0x69bf20], 0
sete bl
mov eax, 0x69bf00
call fcn.00411650
test bl, bl
je 0x41147c
mov eax, 0x69bf00
call fcn.00411620
lea esi, [esi]
pop edi
pop esi
pop ebx
ret

Function at 0x412270
Capabilities:
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 4]
push ebx
push esi
mov dword [ebp - 4], eax
mov ebx, eax
lea eax, [ebp - 4]
call fcn.004120e0
push dword [ebp - 4]
call sub.kernel32.dll_DeleteFileW
test eax, eax
jne 0x4122bc
call sub.kernel32.dll_GetLastError
mov esi, eax
cmp esi, 5
jne 0x4122b4
push dword [ebp - 4]
call sub.kernel32.dll_GetFileAttributesW
and eax, 0x10
cmp eax, 0x10
jne 0x4122b4
mov esi, 2
nop
mov eax, esi
call fcn.004041d0
nop
cmp ebx, dword [ebp - 4]
je 0x4122cc
mov eax, dword [ebp - 4]
call fcn.00410210
lea esi, [esi]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret