joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100064c7
Capabilities:
Create thread
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x1003c398]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1003d654], 0
push edi
mov edi, dword [ebp + 8]
jne 0x1000658e
push ebx
push esi
push 0x10025c74
push 0x10025c78
call fcn.10010477
push 0x10025c88
push dword [edi]
mov esi, eax
call fcn.10010477
xor ebx, ebx
mov edi, eax
inc ebx
jmp 0x1000651f
push eax
lea eax, [ebp - 0x204]
push ebx
push eax
call fcn.10010e1b
push esi
push 0x200
lea eax, [ebp - 0x204]
push ebx
push eax
call fcn.10010787
add esp, 0x20
push edi
test eax, eax
jne 0x10006511
mov dword [0x1003d654], ebx
call fcn.1000ffab
push esi
call fcn.1000ffab
lea eax, [ebp - 0x204]
push eax
call fcn.1000745d
add esp, 0xc
xor esi, esi
push esi
push 2
push 0x1003c304
push dword [0x1003c308]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call fcn.100059ff
push esi
push esi
push esi
push 0x10005705
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1000741e
leave
ret

Function at 0x100066a7
Capabilities:
Create thread

Disassembly:
push edi
xor edi, edi
push edi
push edi
push edi
push 0x10004e36
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
push edi
push edi
push 0x10006d8c
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
inc eax
pop edi
ret

Function at 0x10006771
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1003c398]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x100067f3
cmp byte [esi + 0x3d], 0
je 0x100067f3
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x100067c5
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x100067c9
sub eax, 1
je 0x100067cd
dec eax
sub eax, 1
je 0x100067f3
xor al, al
jmp 0x100067f5
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100067ea
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10010e1b
add esp, 0x10
cmp edi, eax
jne 0x100067c5
cmp byte [esi + 0x3d], 0
sete al
jmp 0x100067f5
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1000741e
leave
ret
Function at 0x10006a0d
Capabilities:
Connect socket
Create thread

Disassembly:
mov eax, dword [0x1003d620]
inc dword [0x1003d5ac]
mov dword [0x1003d624], eax
push esi
test eax, eax
je 0x10006a82
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, eax
mov dword [0x1003c300], ecx
cmp ecx, 0xffffffff
jne 0x10006a58
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.socket_failed_with_error:__ld_n
call fcn.10004765
pop ecx
pop ecx
pop esi
jmp dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [0x1003d624]
push dword [eax + 0x10]
push dword [eax + 0x18]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x10006aa6
and dword [0x1003d5ac], 0
mov eax, dword [0x1003d620]
mov byte [0x1003d391], 1
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [0x1003c300], 0xffffffff
jne 0x10006aa4
push str.Unable_to_connect_to_server__n
call fcn.10004765
pop ecx
pop esi
jmp dword [sym.imp.WS2_32.dll_WSACleanup]
pop esi
ret
xor esi, esi
push esi
push esi
push esi
push 0x10005795
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push esi
push 0x10025844
push str.Server_is_offline_right_now._nTry_again_later.
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push 2
push dword [0x1003c300]
call dword [sym.imp.WS2_32.dll_shutdown]
or dword [0x1003c300], 0xffffffff
call fcn.10006b7c
int3

Function at 0x10006c14
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1003c398]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x10006c3a
xor eax, eax
jmp 0x10006cfc
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x10006c63
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x10006c63
dec dword [edx]
mov eax, ebx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x10006cfc
cmp dword [esi + 0x4c], 0
je 0x10006cfa
mov ecx, esi
call fcn.10006936
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x10006c8f
push dword [esi + 0x4c]
push eax
call fcn.10004abc
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x10006cfa
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x2c]
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x10006cfa
cmp eax, 1
jle 0x10006cc9
cmp eax, 3
jne 0x10006cfa
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x10006c81
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x34], eax
je 0x10006cec
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call fcn.10010e1b
add esp, 0x10
cmp dword [ebp - 0x34], eax
jne 0x10006cfa
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
mov eax, ebx
jne 0x10006cfc
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000741e
leave
ret 4
Function at 0x100071e3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x10007205
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100045ac
jmp 0x100072bc
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov eax, dword [eax]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x10007226
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x10007228
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test ebx, ebx
jl 0x100072b0
jg 0x1000723b
test esi, esi
je 0x100072b0
test ecx, ecx
jl 0x1000727d
jg 0x10007245
test eax, eax
je 0x1000727d
cmp ebx, ecx
jg 0x10007257
jl 0x1000724f
cmp esi, eax
jae 0x10007257
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.10009840
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [edi + 0x2c]
add dword [ebp + 8], ecx
sub esi, ecx
sbb ebx, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x10007283
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test ebx, ebx
jl 0x100072b0
jg 0x1000728d
test esi, esi
je 0x100072b0
cmp dword [edi + 0x4c], 0
je 0x100072b0
mov ecx, edi
call fcn.10006936
push dword [edi + 0x4c]
push esi
push 1
push dword [ebp + 8]
call fcn.10010787
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
pop esi
sbb edx, ebx
pop ebx
pop edi
leave
ret 0xc
Function at 0x100072c1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x100072e3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000467b
jmp 0x10007390
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x10007304
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x10007306
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x10007384
jg 0x10007319
test esi, esi
je 0x10007384
test ecx, ecx
jl 0x1000735d
jg 0x10007323
test eax, eax
je 0x1000735d
cmp edi, ecx
jg 0x10007335
jl 0x1000732d
cmp esi, eax
jae 0x10007335
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.10009840
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x10007360
mov edx, dword [ebp + 8]
test edi, edi
jl 0x10007384
jg 0x1000736a
test esi, esi
je 0x10007384
cmp dword [ebx + 0x4c], 0
je 0x10007384
push dword [ebx + 0x4c]
push esi
push 1
push edx
call fcn.10010e1b
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x10017f67
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10017de6
Function at 0x46ac38
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046a81f

Function at 0x46ac43
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046a9ae

Function at 0x46b166
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0042b110
mov eax, dword [0x497040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00469587
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x46b1a8
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x46b304
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00480540
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x6d9a80]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0046c6f9
mov ecx, dword [esi*4 + 0x6d9a80]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x46b2fd
cmp eax, dword [edi + ecx + 0x24]
jne 0x46b2fd
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46b2fd
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0046c6f9
add esp, 0x14
test edx, edx
jl 0x46b2fd
jg 0x46b273
test eax, eax
jb 0x46b2fd
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x46b2fd
jl 0x46b28d
cmp dword [ebp - 0x1008], eax
ja 0x46b2fd
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x46b2ab
test ebx, ebx
je 0x46b2e4
cmp ecx, edi
jae 0x46b2e4
mov al, byte [ecx]
cmp al, 0xd
jne 0x46b2c5
lea eax, [edi - 1]
cmp ecx, eax
jae 0x46b2d1
cmp byte [ecx + 1], 0xa
jne 0x46b2d1
inc ecx
jmp 0x46b2d1
movzx eax, al
movsx eax, byte [eax + 0x497308]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x46b2ab
cmp edx, ebx
jne 0x46b2ab
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x46b302
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00429cbf
leave
ret
Function at 0x46b882
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x6d9a80]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46b8c2
cmp byte [ebx], 0xa
jne 0x46b8c2
or byte [eax + edi + 0x28], 4
jmp 0x46b8c7
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x46b9c5
mov al, byte [edx]
cmp al, 0x1a
je 0x46b9a7
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x46b8f6
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x46b91b
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x46b925
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x46b8d8
jmp 0x46b9c5
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46b9a2
cmp dword [ebp - 0xc], 0
je 0x46b9a2
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x6d9a80]
test byte [eax + edi + 0x28], 0x48
je 0x46b97c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x46b967
mov byte [esi], dl
jmp 0x46b978
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x6d9a80]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x46b9c5
cmp byte [ebp - 1], 0xa
jne 0x46b98b
cmp esi, ebx
jne 0x46b98b
mov byte [esi], 0xa
jmp 0x46b9c4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0046c717
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x46b9c5
mov byte [esi], 0xd
jmp 0x46b9c4
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x6d9a80]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46b9c1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46b9c5
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46b9ce
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x6d9a80]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46ba11
cmp word [esi], dx
jne 0x46ba11
or byte [edi + eax + 0x28], 4
jmp 0x46ba16
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x46bb69
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x46bb49
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x46ba58
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x46ba8e
cmp eax, edx
jae 0x46ba9a
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x46ba30
jmp 0x46bb69
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46bb45
cmp dword [ebp - 0x14], 0
je 0x46bb45
mov eax, dword [ebx*4 + 0x6d9a80]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x46bb1d
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x46bae6
mov word [esi], cx
jmp 0x46bb19
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x6d9a80]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x6d9a80]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x6d9a80]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x46bb69
pop ebx
cmp word [ebp - 4], bx
jne 0x46bb2e
cmp esi, dword [ebp + 0xc]
jne 0x46bb2e
mov word [esi], bx
jmp 0x46bb66
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0046c717
add esp, 0x10
cmp word [ebp - 4], bx
je 0x46bb69
push 0xd
jmp 0x46bb62
mov ecx, dword [ebx*4 + 0x6d9a80]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46bb60
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46bb69
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4728f0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x47298d
push ebx
push esi
call fcn.004728ac
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0046f993
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x47293a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x47298c
push edi
push eax
call fcn.0046c902
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x47295a
call fcn.00466ae5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x47298b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0046f993
add esp, 0x20
test eax, eax
jne 0x472979
push edi
call fcn.00466ae5
jmp 0x472981
push ebx
call fcn.00466ae5
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x472990
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4729a1
pop esi
ret
push ebx
push edi
push esi
call fcn.004728ac
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0046c902
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4729c9
push ebx
push esi
push edi
call fcn.0042b920
add esp, 0xc
push 0
call fcn.00466ae5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4732aa
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00472c3c

Function at 0x4803e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x48040d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x48040d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403d61
Capabilities:
Encode data using xor

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

Function at 0x403d61
Capabilities:
Encode data using xor

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

Function at 0x403d61
Capabilities:
Encode data using xor

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

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x218d628c
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x3e957f3a
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4053c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push ecx
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
xor esi, esi
mov ecx, dword [ebx + 0x3c]
mov edi, dword [ecx + ebx + 0x78]
mov ecx, dword [edi + ebx + 0x24]
add edi, ebx
add ecx, ebx
mov dword [ebp - 0xc], ecx
mov eax, dword [edi + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x20]
add eax, ebx
mov dword [ebp - 8], eax
cmp dword [edi + 0x18], esi
jbe 0x405442
nop
mov ecx, dword [eax + esi*4]
add ecx, ebx
call fcn.00405340
mov ecx, dword [ebp - 4]
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x405430
test dl, dl
je 0x40542c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x405430
add ecx, 2
add eax, 2
test dl, dl
jne 0x405410
xor eax, eax
jmp 0x405435
sbb eax, eax
or eax, 1
test eax, eax
je 0x40544b
mov eax, dword [ebp - 8]
inc esi
cmp esi, dword [edi + 0x18]
jb 0x405400
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
pop edi
movzx eax, word [eax + esi*2]
pop esi
mov eax, dword [ecx + eax*4]
add eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

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

Function at 0x403d61
Capabilities:
Encode data using xor

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