joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ff9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004709fd
xor ebx, ebx
cmp dword [0x496ed4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4020ce
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x402039
xor eax, eax
jmp 0x402192
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x402032
push eax
call fcn.0047099a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x496ed4], eax
call esi
push eax
call fcn.0047099a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x496ed8], eax
call esi
push eax
call fcn.0047099a
mov dword [0x496edc], eax
lea eax, [ebp - 8]
push eax
call fcn.00470674
test eax, eax
pop ecx
pop ecx
je 0x40209c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00470dd0
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4020ce
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0047099a
cmp eax, ebx
pop ecx
mov dword [0x496ee4], eax
je 0x4020ce
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0047099a
pop ecx
mov dword [0x496ee0], eax
mov eax, dword [0x496ee0]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x402147
cmp dword [0x496ee4], esi
je 0x402147
push eax
call fcn.00470a06
pop ecx
call eax
cmp eax, ebx
je 0x402114
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x496ee4]
call fcn.00470a06
pop ecx
call eax
test eax, eax
je 0x402114
test byte [ebp - 0x18], 1
jne 0x402147
lea eax, [ebp - 0xc]
push eax
call fcn.004706ab
test eax, eax
pop ecx
je 0x40212f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00470dd0
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40213e
or dword [ebp + 0x10], 0x200000
jmp 0x402178
or dword [ebp + 0x10], 0x40000
jmp 0x402178
mov eax, dword [0x496ed8]
cmp eax, esi
je 0x402178
push eax
call fcn.00470a06
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x402178
mov eax, dword [0x496edc]
cmp eax, esi
je 0x402178
push dword [ebp - 4]
push eax
call fcn.00470a06
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x496ed4]
call fcn.00470a06
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44cd3c
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop eax
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x50], eax
push 0
push 0
push 0
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_GetMessageW]
or eax, eax
je 0x44cd2d
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_TranslateMessage]
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x44cd06
mov eax, dword [ebp - 0x14]
call fcn.0040c64d
pop ebx
pop edi
pop esi
leave
ret 0x10
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [0x494c04], 8
mov dword [0x494c08], 0x4000
push 0x494c04
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ebx, str.durt
mov eax, dword [ebp + 8]
mov dword [0x48f35d], eax
push str.fillt
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [0x494c44], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
mov esi, edi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], edi
mov eax, 0x420602
nop
mov dword [ebp - 0x30], esi
nop
mov dword [ebp - 0x28], edi
nop
mov dword [ebp - 0x20], esi
mov esi, 0x20
mov dword [ebp - 0x44], eax
mov eax, dword [0x48f35d]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x48], esi
push esi
push edi
call dword [sym.imp.USER32.dll_LoadIconW]
xor eax, eax
push esi
push edi
call dword [sym.imp.USER32.dll_LoadCursorW]
mov eax, 0x10
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], ebx
xor eax, eax
mov al, 0x30
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
jmp 0x45676d
xor eax, eax
mov dword [0x48f361], ebp
mov edi, eax
inc eax
push edi
push dword [0x48f35d]
dec eax
push edi
push edi
push eax
push ebx
push edi
push edi
push 0x80ca0000
push str.fillt
push str.durt
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
jne 0x44ccee
leave
ret 0x10

Function at 0x472105
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4956c8]
jne 0x47210f
repz ret
jmp fcn.004730d5
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x42e072
nop
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x4433239d
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
nop
mov eax, section..rsrc
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x44335a95
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x10257cb2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10277f98]
jne 0x10257cbc
repz ret
jmp fcn.10258c4e

Function at 0x10258873
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10257d33
and dword [ebp - 4], 0
cmp dword [0x102794b4], 0
mov ebx, eax
jne 0x10258924
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x102589d5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x102589d5
push eax
call fcn.10257cc1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x102794b4], eax
call esi
push eax
call fcn.10257cc1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x102794b8], eax
call esi
push eax
call fcn.10257cc1
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x102794bc], eax
call esi
push eax
call fcn.10257cc1
pop ecx
mov dword [0x102794c4], eax
test eax, eax
je 0x10258924
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10257cc1
pop ecx
mov dword [0x102794c0], eax
mov eax, dword [0x102794c0]
cmp eax, ebx
je 0x1025897c
cmp dword [0x102794c4], ebx
je 0x1025897c
push eax
call fcn.10257d3c
push dword [0x102794c4]
mov esi, eax
call fcn.10257d3c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1025897c
test edi, edi
je 0x1025897c
call esi
test eax, eax
je 0x10258973
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10258973
test byte [ebp - 0xc], 1
jne 0x1025897c
or dword [ebp + 0x10], 0x200000
jmp 0x102589b5
mov eax, dword [0x102794b8]
cmp eax, ebx
je 0x102589b5
push eax
call fcn.10257d3c
pop ecx
test eax, eax
je 0x102589b5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x102589b5
mov eax, dword [0x102794bc]
cmp eax, ebx
je 0x102589b5
push eax
call fcn.10257d3c
pop ecx
test eax, eax
je 0x102589b5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x102794b4]
call fcn.10257d3c
pop ecx
test eax, eax
je 0x102589d5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x102589d7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1025c1bc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
call fcn.10001075
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
je 0x1025c1f2
jmp 0x1025c21b
mov eax, dword [esp + 0x20]
cmp word [eax], 0x5a4d
mov dword [esp + 0x1c], eax
je 0x1025c2b1
jmp 0x1025c225
lea eax, [esp + 0x38]
mov dword [0x10277ea8], 0x1c88
mov dword [esp + 0x18], eax
call fcn.1025c896
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x14], ecx
je 0x1025c239
jmp 0x1025c336
mov eax, dword [esp + 0x24]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov eax, dword [esp + 0x1c]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x20], eax
jmp 0x1025c1dd
lea eax, [esp + 0x28]
mov dword [esp], eax
call fcn.1025bee9
lea ecx, [0x1025cb7d]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x50], edx
mov dword [esp + 0x58], 0x113c00
mov edx, dword [0x10277e94]
mov dword [esp + 0x3c], edx
mov edx, dword [0x10277e98]
mov dword [esp + 0x44], edx
mov dword [0x10277eac], 0x1cfb
mov edx, dword [0x10277e9c]
mov dword [esp + 0x5c], edx
mov edx, dword [0x10277ea0]
mov dword [esp + 0x84], edx
mov edx, dword [0x10277ea4]
mov dword [esp + 0x6c], edx
mov dword [0x10277ea8], 0x3721
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], ecx
jmp 0x1025c1dd
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
jne 0x1025c225
mov eax, dword [esp + 0xc]
add eax, 0x50
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x80], ecx
mov dword [esp + 8], eax
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 8]
mov esi, dword [ecx + edx]
mov dword [esp + 0x38], esi
mov dword [0x10277ea8], 0x287
mov esi, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.1025ceac
mov ecx, dword [0x10277ea8]
add ecx, 0x1596
mov dword [0x10277ea8], ecx
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], eax
jmp 0x1025c21b
Function at 0x1025c625
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [ebp + 8]
mov dword [0x10277ea8], 0x7d3
mov dword [ebp - 0x10], eax
call fcn.1025d05f
xor ecx, ecx
mov edx, eax
mov dword [0x10277ea8], 0x2094
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x1025c675
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [0x10277eac], 0x10c6
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
je 0x1025c79d
jmp 0x1025c757
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], edx
jmp 0x1025c722
xor eax, eax
mov ecx, dword [ebp - 0x40]
add ecx, 2
mov edx, dword [ebp - 0x3c]
add edx, 1
mov esi, dword [ebp - 0x2c]
cmp edx, esi
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x30], eax
jb 0x1025c6b3
jmp 0x1025c79d
mov eax, dword [ebp - 0x4c]
add eax, 1
mov cl, byte [ebp - 0x4d]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x4e]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x48], eax
jne 0x1025c722
jmp 0x1025c74b
mov eax, dword [ebp - 0x48]
mov ecx, eax
mov edx, dword [ebp - 0x44]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x4d], bh
mov byte [ebp - 0x4e], cl
jne 0x1025c6f8
mov al, byte [ebp - 0x4e]
test al, 1
jne 0x1025c76e
jmp 0x1025c6cf
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], eax
jmp 0x1025c6b3
mov eax, dword [ebp - 0x40]
movzx ecx, word [eax]
mov dword [0x10277eac], 0x552
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov ecx, dword [edx + ecx*4]
mov dword [0x10277ea8], 0x401
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1025c896
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov dword [ebp - 8], 0
mov dword [0x10277ea8], 0xbee
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
xor ecx, ecx
mov edx, 0x26f4
mov dword [0x10277ea8], 0x26f4
mov esi, dword [ebp - 8]
mov esi, dword [esi + 0x10]
mov esi, dword [esi + 0x3c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jmp 0x1025c96a
mov eax, dword [ebp - 0x1c]
mov dword [0x10277ea8], 0x1599
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x20], eax
je 0x1025c94f
jmp 0x1025c9e0
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x24], eax
je 0x1025c9e7
jmp 0x1025c9e0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x1025c903
jmp 0x1025c9e0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x1025c9cd
jmp 0x1025c9e0
mov dword [0x10277ea8], 0x1581
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x1025c9b8
jmp 0x1025c9e0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
cmp word [edx + ecx*2], 0
mov esi, ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x1c], esi
je 0x1025c8e2
mov eax, dword [ebp - 0x2c]
add eax, 1
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffc2c
mov dword [0x10277ea8], ecx
cmp eax, 0x104
mov edx, eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
jl 0x1025c96a
jmp 0x1025c8e2
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x1025c937
jmp 0x1025c9e0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x1025c923
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x1025c9e7
mov eax, dword [ebp - 0x24]
add esp, 0x28
pop esi
pop ebp
ret
Function at 0x1025cbd3
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x10277ea8], 0x545
mov dword [0x10277eb0], 0
mov dword [0x10277eb4], 0
mov dword [0x10277ec0], 0
mov ebx, dword [0x10277eac]
add ebx, 0x1628
mov dword [0x10277eac], ebx
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x1025cd51
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add eax, 1
mov edi, ecx
add edi, 1
mov dword [ebp - 0x2c], edx
cdq
idiv esi
mov dword [0x10277eb0], edx
mov ebx, dword [ebp - 0x20]
movzx ebx, byte [ebx + edx]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x2c]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x10277eb4], edx
mov dword [0x10277ea8], 0x1d10
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x10277eb8], cl
mov dword [0x10277eac], 0x609
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov edx, dword [0x10277eac]
add edx, 0x19b1
mov dword [0x10277ea8], edx
mov cl, byte [0x10277eb8]
mov edx, dword [0x10277eb4]
mov byte [ebx + edx], cl
mov edx, dword [0x10277eb0]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x10277eb4]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x10277ec0], ecx
mov edx, dword [0x10277ea8]
add edx, 0x223a
mov dword [0x10277eac], edx
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x30]
mov dl, byte [edx + esi]
xor dl, byte [ebx + ecx]
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + esi], dl
mov ecx, dword [ebp - 0x10]
cmp edi, ecx
mov dword [ebp - 0x38], edi
je 0x1025cd51
mov eax, dword [0x10277eb0]
mov ecx, dword [0x10277eb4]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], edx
jmp 0x1025cc48
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1025ceac
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x58
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x10277ea8], 0x132c
mov esi, dword [0x10277eac]
mov edi, esi
add edi, 0xdd7c
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], edx
jmp 0x1025cfe3
mov eax, dword [ebp - 0x44]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x30]
mov dword [esp + 4], ecx
mov dword [ebp - 0x48], eax
call fcn.1025cd95
xor eax, eax
mov ecx, dword [ebp - 0x48]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xc0
mov dword [ecx + 0xc0], 0x4550
add ecx, 0xffc00000
mov dword [0x10277ea8], 0x528
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x1c], ecx
mov ecx, dword [0x10277ea8]
add ecx, 0xfffff810
mov dword [0x10277ea8], ecx
mov ecx, dword [ebp - 0x48]
mov dword [edx + 0x50], ecx
mov dword [0x10277eac], 0xd26
cmp ecx, 0
mov dword [ebp - 0x4c], eax
je 0x1025d024
jmp 0x1025d00f
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x38]
mov dword [0x10277eac], ecx
mov edx, dword [ebp - 0x3c]
add edx, 0xd1ca
mov dword [0x10277ea8], edx
mov dword [ebp - 0x50], eax
call fcn.1025c7a8
mov dword [esp], eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 4], eax
call fcn.1025c343
mov dword [0x10277eac], 0x123
cmp eax, 0
sete bl
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x51], bl
xor eax, eax
mov cl, byte [ebp - 0x51]
test cl, 1
mov dword [ebp - 0x4c], eax
jne 0x1025d024
jmp 0x1025cee9
mov eax, dword [ebp - 0x40]
mov cl, byte [eax + 0x1025e352]
mov dl, byte [eax + 0x1025e323]
sub dl, cl
mov byte [ebp + eax - 0x2c], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x40], eax
je 0x1025cf87
jmp 0x1025cfe3
mov eax, dword [ebp - 0x48]
add eax, 0x172e
mov dword [0x10277ea8], 0x1421
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1025d1ce
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x10277eb4], 0
mov byte [0x10277eb8], 0
mov dword [0x10277eac], 0x608
mov dword [0x10277eb0], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x1025d227
mov dword [0x10277eac], 0xe07
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x10277eb0]
add eax, 1
mov dword [0x10277eb0], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1025d227
mov dword [0x10277eb0], 0
mov eax, dword [0x10277ea8]
add eax, 0xfffff171
mov dword [ebp - 0x20], eax
xor eax, eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
jmp 0x1025d271
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov edx, 0x1877
mov esi, 0x100
mov dword [0x10277ebc], 0
mov edi, dword [0x10277eb4]
mov ebx, dword [ebp - 0x18]
movzx ebx, byte [ebx + eax]
add ebx, edi
mov dword [ebp - 0x2c], eax
xor edi, edi
mov dword [ebp - 0x30], edx
mov edx, edi
mov edi, dword [ebp - 0x10]
div edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add ebx, edx
mov dword [0x10277ebc], ebx
mov dword [0x10277ea8], ecx
mov eax, ebx
cdq
idiv esi
mov dword [0x10277eb4], edx
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
mov cl, byte [ecx + esi]
mov byte [0x10277eb8], cl
mov ebx, dword [ebp - 0x18]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x10277eb8]
mov edx, dword [0x10277eb4]
mov byte [ebx + edx], cl
mov dword [0x10277ea8], 0x2706
mov edx, dword [0x10277eb0]
add edx, 1
mov dword [0x10277eb0], edx
cmp edx, 0x100
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
jl 0x1025d271
jmp 0x1025d215
Function at 0x402b70
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x470008], 0x8088405
inc edx
mov dword [ebx + 0x470008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x402fc8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x470024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403060
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403040
xor eax, eax
push ebp
push 0x403039
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40307c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403040
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x470024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x470024], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d24
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x472048], 0
je 0x403d85
cmp word [0x47221c], 0xd7b2
jne 0x403d4d
cmp dword [0x472224], 0
jbe 0x403d4d
mov eax, 0x472218
call dword [0x472234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x470070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403dac
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x470034], 0
jne 0x403da1
push 0
push 0x470068
push 0x470070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret