joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b7987
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4b7b5b
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x52d8c0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4b7b5b
test cl, 0x48
je 0x4b79f2
cmp byte [eax + 5], 0xa
je 0x4b79f2
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4b7a44
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4b7a2c
call fcn.004adc35
mov dword [eax], 9
call fcn.004adc48
mov dword [eax], esi
jmp 0x4b7a3c
cmp eax, 0x6d
je 0x4b7b5b
push eax
call fcn.004adc5b
pop ecx
or eax, 0xffffffff
jmp 0x4b7b5d
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4b7b56
test eax, eax
je 0x4b7a6b
cmp byte [ebx], 0xa
jne 0x4b7a6b
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4b7a74
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4b7b50
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4b7b40
cmp al, 0xd
je 0x4b7aa6
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4b7b32
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4b7ac0
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4b7abb
add dword [ebp + 0x10], 2
jmp 0x4b7b14
mov dword [ebp + 0x10], eax
jmp 0x4b7b2e
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4b7ae8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4b7b2e
cmp dword [ebp - 0xc], 0
je 0x4b7b2e
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4b7b09
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4b7b14
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4b7b31
cmp ebx, dword [ebp + 0xc]
jne 0x4b7b19
cmp byte [ebp - 1], 0xa
jne 0x4b7b19
mov byte [ebx], 0xa
jmp 0x4b7b31
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004b45fa
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4b7b32
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4b7a8a
jmp 0x4b7b50
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4b7b50
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4b7b5d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b98ec
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4b991a
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4b9921
cmp ebx, dword [eax + 4]
jae 0x4b9921
xor eax, eax
jmp 0x4b9b11
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4b9932
xor eax, eax
inc eax
jmp 0x4b9b10
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4b9948
cmp ecx, edx
jae 0x4b9a8d
cmp dword [eax + 4], 0
je 0x4b9951
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4b9939
cmp dword [ebp + 8], 0
je 0x4b9973
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4b9a8d
cmp eax, esi
jae 0x4b9a8d
mov eax, dword [0x52d7a8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4b9998
cmp dword [esi*4 + 0x52d7b0], edi
je 0x4b9a91
inc esi
cmp esi, eax
jl 0x4b9986
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4b9b0d
cmp dword [ebp - 8], 0x1000000
jne 0x4b9b0d
test byte [ebp - 0xc], 0xcc
je 0x4b9a16
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4b9b0d
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4b9b0d
cmp word [eax + 0x18], 0x10b
jne 0x4b9b0d
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4b9b0d
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4b9a16
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4b9a16
test byte [ecx + 0x27], 0x80
jne 0x4b9a8d
push 1
push 0x52d7f0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4b992a
mov ecx, dword [0x52d7a8]
test ecx, ecx
mov edx, ecx
jle 0x4b9a4a
lea eax, [ecx*4 + 0x52d7ac]
cmp dword [eax], edi
je 0x4b9a4a
dec edx
sub eax, 4
test edx, edx
jg 0x4b9a3e
test edx, edx
jne 0x4b9a7b
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4b9a57
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4b9a6f
lea eax, [edx*4 + 0x52d7b0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4b9a5d
cmp ecx, 0x10
jge 0x4b9a7b
inc ecx
mov dword [0x52d7a8], ecx
push 0
push 0x52d7f0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4b992a
xor eax, eax
jmp 0x4b9b10
test esi, esi
jle 0x4b992a
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x52d7f0
call ebx
test eax, eax
jne 0x4b992a
cmp dword [esi*4 + 0x52d7b0], edi
je 0x4b9ae7
mov eax, dword [0x52d7a8]
lea esi, [eax - 1]
test esi, esi
jl 0x4b9ad5
cmp dword [esi*4 + 0x52d7b0], edi
je 0x4b9ad1
dec esi
jns 0x4b9ac5
test esi, esi
jge 0x4b9ae5
cmp eax, 0x10
jge 0x4b9ae0
inc eax
mov dword [0x52d7a8], eax
lea esi, [eax - 1]
jmp 0x4b9ae7
je 0x4b9aff
xor ecx, ecx
test esi, esi
jl 0x4b9aff
lea eax, [ecx*4 + 0x52d7b0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4b9aed
push 0
push 0x52d7f0
call ebx
jmp 0x4b992a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4bc8ec
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x52d848], ebx
push esi
push edi
jne 0x4bc96c
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4bc9a7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4f869c
push edi
call esi
test eax, eax
mov dword [0x52d848], eax
je 0x4bc9a7
push 0x4f868c
push edi
call esi
push 0x4f8678
push edi
mov dword [0x52d84c], eax
call esi
cmp dword [0x52d0c4], 2
mov dword [0x52d850], eax
jne 0x4bc96c
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x52d858], eax
je 0x4bc96c
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x52d854], eax
mov eax, dword [0x52d854]
test eax, eax
je 0x4bc9b1
call eax
test eax, eax
je 0x4bc998
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x52d858]
test eax, eax
je 0x4bc998
test byte [ebp - 8], 1
jne 0x4bc9b1
cmp dword [0x52d0d0], 4
jb 0x4bc9ab
or byte [ebp + 0x12], 0x20
jmp 0x4bc9d0
xor eax, eax
jmp 0x4bc9e0
or byte [ebp + 0x12], 4
jmp 0x4bc9d0
mov eax, dword [0x52d84c]
test eax, eax
je 0x4bc9d0
call eax
mov ebx, eax
test ebx, ebx
je 0x4bc9d0
mov eax, dword [0x52d850]
test eax, eax
je 0x4bc9d0
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x52d848]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4bd206
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
call fcn.004b45fa
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x4bd34b
push 2
push esi
push dword [ebp + 8]
call fcn.004b45fa
add esp, 0xc
cmp eax, ebx
je 0x4bd34b
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4bd2ee
mov ebx, 0x1000
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [ebp - 4], eax
jne 0x4bd27f
call fcn.004adc35
mov dword [eax], 0xc
or esi, 0xffffffff
jmp 0x4bd336
push 0x8000
push dword [ebp + 8]
call fcn.004be236
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp edi, ebx
mov eax, ebx
jge 0x4bd299
mov eax, edi
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004b0fd6
add esp, 0xc
cmp eax, 0xffffffff
je 0x4bd2b5
sub edi, eax
test edi, edi
jg 0x4bd291
jmp 0x4bd2cd
call fcn.004adc48
cmp dword [eax], 5
jne 0x4bd2ca
call fcn.004adc35
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004be236
pop ecx
pop ecx
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4bd336
jge 0x4bd336
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004b45fa
push dword [ebp + 8]
call fcn.004ad969
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x4bd336
call fcn.004adc35
mov dword [eax], 0xd
call fcn.004adc48
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.004b45fa
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4bd34d
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x4be339
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4f8748
call fcn.004b0d68
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x52d87c], edi
jne 0x4be37d
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4be368
mov dword [0x52d87c], ebx
jmp 0x4be37d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4be37d
mov dword [0x52d87c], 2
mov eax, dword [0x52d87c]
cmp eax, ebx
jne 0x4be39d
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x4be45f
cmp eax, 2
je 0x4be3a6
cmp eax, edi
jne 0x4be3ce
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x4be3b9
mov eax, dword [0x52d7a0]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x4be3d5
xor eax, eax
jmp 0x4be45f
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.004aa330
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x4be408
cmp esi, edi
jne 0x4be41d
mov ecx, dword [ebp - 0x20]
call fcn.004b3ad2
mov esi, eax
cmp esi, edi
je 0x4be3ce
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4be450
cmp dword [ebp + 0x14], edi
jne 0x4be43a
push edi
push edi
jmp 0x4be440
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x4be45c
push esi
call fcn.004aa6ad
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.004b0da3
ret
Function at 0x4be468
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4f8758
call fcn.004b0d68
xor esi, esi
cmp dword [0x52d880], esi
jne 0x4be4ac
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4be497
mov dword [0x52d880], edi
jmp 0x4be4ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4be4ac
mov dword [0x52d880], 2
mov eax, dword [0x52d880]
cmp eax, 2
je 0x4be58b
cmp eax, esi
je 0x4be58b
cmp eax, 1
jne 0x4be4f1
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x4be4da
mov eax, dword [0x52d7a0]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x4be4f8
xor eax, eax
jmp 0x4be59d
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.004aa330
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x4be52e
cmp edi, esi
jne 0x4be547
lea ecx, [ebx + ebx]
call fcn.004b3ad2
mov edi, eax
cmp edi, esi
je 0x4be4f1
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4be57a
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x4be564
push esi
push esi
jmp 0x4be56a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x4be586
push edi
call fcn.004aa6ad
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x4be59d
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.004b0da3
ret
Function at 0x4bece1
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [ebp - 0xc], ebx
je 0x4bed49
push 0x3d
push esi
call fcn.004acc3f
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x4bed49
cmp esi, eax
je 0x4bed49
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x52d0e4]
sete cl
cmp eax, dword [0x52d0e8]
mov dword [ebp - 4], ecx
jne 0x4bed2f
mov edi, eax
call fcn.004bec82
mov dword [0x52d0e4], eax
cmp eax, ebx
jne 0x4bed88
cmp dword [ebp + 0xc], ebx
je 0x4bed51
cmp dword [0x52d0ec], ebx
je 0x4bed51
call fcn.004be0a3
test eax, eax
je 0x4bed88
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x4bee8c
push 4
pop ecx
call fcn.004b3ad2
cmp eax, ebx
mov dword [0x52d0e4], eax
je 0x4bed49
mov dword [eax], ebx
cmp dword [0x52d0ec], ebx
jne 0x4bed88
push 4
pop ecx
call fcn.004b3ad2
cmp eax, ebx
mov dword [0x52d0ec], eax
je 0x4bed49
mov dword [eax], ebx
mov edi, dword [ebp - 8]
mov ebx, dword [0x52d0e4]
sub edi, esi
push esi
call fcn.004bec35
mov edi, eax
test edi, edi
pop ecx
jl 0x4bede2
cmp dword [ebx], 0
je 0x4bede2
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.004aa6ad
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4bedc9
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov esi, eax
jmp 0x4bee16
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x4bedc0
mov edx, edi
shl edx, 2
mov ecx, ebx
call fcn.004b3b48
test eax, eax
mov esi, dword [ebp + 8]
je 0x4bee16
jmp 0x4bee11
cmp dword [ebp - 4], 0
jne 0x4bee85
test edi, edi
jge 0x4bedf2
neg edi
lea edx, [edi*4 + 8]
mov ecx, ebx
call fcn.004b3b48
test eax, eax
je 0x4bed49
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x52d0e4], eax
cmp dword [ebp + 0xc], 0
je 0x4bee70
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4bee21
sub eax, edx
lea ecx, [eax + 2]
call fcn.004b3ad2
mov edi, eax
test edi, edi
je 0x4bee70
mov ecx, esi
sub eax, esi
mov dl, byte [ecx]
mov byte [eax + ecx], dl
inc ecx
test dl, dl
jne 0x4bee3c
mov ecx, dword [ebp - 8]
add eax, ecx
mov ecx, dword [ebp - 4]
mov byte [eax], dl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4bee69
or dword [ebp - 0xc], 0xffffffff
push edi
call fcn.004aa6ad
pop ecx
cmp dword [ebp - 4], 0
je 0x4bee7d
push esi
call fcn.004aa6ad
pop ecx
mov eax, dword [ebp - 0xc]
jmp 0x4bed4c
push esi
call fcn.004aa6ad
pop ecx
xor eax, eax
jmp 0x4bed4c
Function at 0x4c2df0
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.004aa330
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4c2ebb
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 0x4c2ebb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4c2e6e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4c2e79
or bh, 8
and edi, 0x8000000
je 0x4c2e94
mov eax, dword [0x52ecbc]
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 0x4c2ebb
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 0x4c3290
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 0x4c32bb
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 0x4c32df
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 0x4c32fa
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 0x4c96c9
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 0x4c96eb
cmp dword [edi + 0x3c], 0
jne 0x4c96eb
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004db1f7
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.004c972a
pop edi
pop esi
pop ebx
ret 8

Function at 0x4cae66
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4cae9e
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.004ce808
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ce7e0
jmp 0x4caeaa
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4caeae
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x52ca10
mov ecx, edi
call fcn.004ce4ea
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x4caf01
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x4caf14
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.004ce808
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.004ce7e0
jmp 0x4caf14
mov ecx, esi
call fcn.004cd5d4
test eax, eax
je 0x4caf14
push edi
mov ecx, eax
call fcn.004cae66
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x4ccc68
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 0x4cccaa
call fcn.004db1f7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4cccaa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ccca1
xor eax, eax
jmp 0x4cccb2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004cccb8
pop edi
pop esi
pop ebx
ret 4
Function at 0x4e3870
Capabilities:
Receive data
Receive data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_recv
ret 0xc

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

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_send
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
popal
nop
nop
nop
jmp 0x401219