joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4301a8
Capabilities:
Parse pe header

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

Function at 0x45c8d6
Capabilities:
Parse pe header

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

Function at 0x464dbb
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00464c8f
Function at 0x466ac2
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x497040]
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 0x466b0d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00466e9a
test al, al
jne 0x466b07
sub edx, 2
cmp edx, edi
jne 0x466aed
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x466b2f
lea eax, [edi + 2]
cmp edx, eax
je 0x466b2f
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00466789
add esp, 0x10
jmp 0x466c29
push esi
lea ecx, [ebp - 0x255]
call fcn.00466e9a
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 0x466b72
push dword [ebp - 0x25c]
jmp 0x466b1f
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 0x466baf
cmp word [ebp - 0x226], 0
je 0x466bd0
cmp word [ebp - 0x226], ax
jne 0x466baf
cmp word [ebp - 0x224], 0
je 0x466bd0
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00466789
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x466c1c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x466b89
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x466c04
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x466c29
push 0x4661d9
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00474920
add esp, 0x10
jmp 0x466bf9
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.0042f4a5
leave
ret
Function at 0x468138
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 0x4681d5
push ebx
push esi
call fcn.004680f4
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.00468031
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x468182
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4681d4
push edi
push eax
call fcn.0046174d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4681a2
call fcn.00461475
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4681d3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00468031
add esp, 0x20
test eax, eax
jne 0x4681c1
push edi
call fcn.00461475
jmp 0x4681c9
push ebx
call fcn.00461475
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 0x4681d8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4681e9
pop esi
ret
push ebx
push edi
push esi
call fcn.004680f4
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0046174d
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x468211
push ebx
push esi
push edi
call fcn.00430a10
add esp, 0xc
push 0
call fcn.00461475
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x468abf
Capabilities:
Set environment variable

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

Function at 0x469439
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4891c4
push 0x4891bc
push str.FlsAlloc
push 0x1f
call fcn.00469107
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46946d
push dword [ebp + 8]
mov ecx, esi
call dword [0x4811fc]
call esi
jmp 0x469473
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4694b7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4891d4
push 0x4891cc
push str.FlsGetValue
push 0x21
call fcn.00469107
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4694ee
push dword [ebp + 8]
mov ecx, esi
call dword [0x4811fc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4694f6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4891dc
push 0x4891d4
push str.FlsSetValue
push 0x22
call fcn.00469107
mov esi, eax
add esp, 0x10
test esi, esi
je 0x469530
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4811fc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x46cb07
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00461153
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x46cb76
cmp esi, dword [ebp - 4]
je 0x46cb71
cmp dword [ebp + 0xc], 0
je 0x46cb71
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x46cb4e
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0046c659
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x46cb78
xor eax, eax
inc eax
jmp 0x46cb78
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x46cbdd
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x497040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00461153
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00461153
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x46cc54
cmp word [ecx], dx
je 0x46cc54
mov eax, dword [0x489604]
push edi
dec eax
push eax
push 0x4894f0
call fcn.0046cb7c
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x46ccc7
cmp word [eax], dx
je 0x46ccc7
mov eax, dword [edi]
test eax, eax
je 0x46cc78
cmp word [eax], dx
je 0x46cc78
lea eax, [ebp - 0x10]
push eax
call fcn.0046c55f
jmp 0x46cc81
lea eax, [ebp - 0x10]
push eax
call fcn.0046c5fa
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x46ccf1
mov eax, dword [0x4894ec]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4891e0
call fcn.0046cb7c
add esp, 0xc
test al, al
je 0x46ccf1
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x46ccbc
cmp word [eax], di
je 0x46ccbc
lea eax, [ebp - 0x10]
push eax
call fcn.0046c55f
pop ecx
jmp 0x46ccf3
lea eax, [ebp - 0x10]
push eax
call fcn.0046c5fa
jmp 0x46ccb9
mov eax, dword [edi]
test eax, eax
je 0x46ccde
cmp word [eax], dx
je 0x46ccde
lea eax, [ebp - 0x10]
push eax
call fcn.0046c4f6
pop ecx
jmp 0x46ccf1
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x46cdbc
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0046ca01
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x46cdbc
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x46cdbc
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x46cdbc
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x46cd49
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004697c7
test ebx, ebx
je 0x46cdb7
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004697c7
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x46cdbc
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x46cdbc
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0045a73d
add esp, 0x10
xor eax, eax
inc eax
jmp 0x46cdbe
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f4a5
leave
ret
Function at 0x477ab7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x499078]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x477af7
cmp byte [ebx], 0xa
jne 0x477af7
or byte [edi + eax + 0x28], 4
jmp 0x477afc
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x477bfb
mov dl, byte [eax]
cmp dl, 0x1a
je 0x477bde
inc eax
cmp dl, 0xd
je 0x477b28
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x477b4e
cmp eax, ecx
jae 0x477b5c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x477b10
jmp 0x477bfb
push 0
lea eax, [ebp - 0x10]
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 0x477bd9
cmp dword [ebp - 0x10], 0
je 0x477bd9
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x499078]
test byte [eax + edi + 0x28], 0x48
je 0x477bb3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x477b9e
mov byte [esi], dl
jmp 0x477baf
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x499078]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x477bfb
cmp byte [ebp - 1], 0xa
jne 0x477bc2
cmp esi, ebx
jne 0x477bc2
mov byte [esi], 0xa
jmp 0x477bfa
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00477520
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x477bfb
mov byte [esi], 0xd
jmp 0x477bfa
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x499078]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x477bf8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x477bfb
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x477c04
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x499078]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x477c4a
cmp word [ebx], dx
jne 0x477c4a
or byte [eax + edi + 0x28], 4
jmp 0x477c4f
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x477db2
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x477d92
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x477c90
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x477cc6
cmp eax, edx
jae 0x477cd4
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x477c6b
jmp 0x477db2
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x477d8d
cmp dword [ebp - 0x18], 0
je 0x477d8d
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x499078]
test byte [eax + edi + 0x28], 0x48
je 0x477d63
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x477d27
mov word [esi], cx
jmp 0x477d5e
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x499078]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x499078]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x499078]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x477db2
pop eax
cmp word [ebp - 4], ax
jne 0x477d73
cmp esi, ebx
jne 0x477d73
mov word [esi], ax
jmp 0x477daf
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00477520
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x477db2
push 0xd
pop eax
jmp 0x477d6e
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x499078]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x477dac
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x477db2
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x47b720
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47b74d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47b74d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0xe8c000
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x40
lea eax, [esp + 0x44]
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
push 0
push eax
push 0x40
push ecx
push esi
call ebx
test eax, eax
je 0xe8c175
cmp dword [esp + 0x54], 0x40
jne 0xe8c175
cmp word [esp + 0x10], 0x5a4d
jne 0xe8c175
mov edx, dword [esp + 0x4c]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push edx
push esi
call ebp
cmp eax, 0xffffffff
je 0xe8c175
lea eax, [esp + 0x54]
push 0
push eax
push 0xf8
push 0xe92960
push esi
call ebx
test eax, eax
je 0xe8c175
cmp dword [esp + 0x54], 0xf8
jne 0xe8c175
cmp dword [0xe92960], 0x4550
jne 0xe8c175
mov eax, dword [0xe92976]
test ah, 0x20
jne 0xe8c175
mov edx, dword [0xe92a80]
xor eax, eax
mov ax, word [0xe92966]
add eax, edx
lea eax, [eax + eax*4]
shl eax, 3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0xe92a58], eax
je 0xe8c175
push 1
push 0
push 0
push esi
call ebp
mov dword [0xe92a6c], eax
xor eax, eax
mov ax, word [0xe92966]
mov edx, dword [0xe92a58]
lea ecx, [esp + 0x54]
push 0
lea edi, [eax + eax*4]
push ecx
shl edi, 3
push edi
push edx
push esi
call ebx
test eax, eax
je 0xe8c175
cmp dword [esp + 0x54], edi
jne 0xe8c175
push 1
push 0
push 0
push esi
call ebp
mov ecx, dword [0xe92a80]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov eax, dword [0xe929b4]
cmp edx, eax
ja 0xe8c175
mov edi, dword [0xe92a58]
mov ecx, dword [0xe92988]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
add eax, edx
cmp ecx, eax
jae 0xe8c175
xor eax, eax
push 2
mov ax, word [0xe92966]
push 0
push 0
push esi
lea ecx, [eax + eax*4]
mov ebx, dword [edi + ecx*8 - 0x18]
lea edi, [edi + ecx*8]
call ebp
mov edx, dword [edi - 0x14]
add edx, ebx
cmp eax, edx
jne 0xe8c175
cmp dword [edi - 0x20], ebx
ja 0xe8c175
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0xe8e769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0xe92190
cmp edx, dword [eax]
je 0xe8e78b
add eax, 8
inc ecx
cmp eax, 0xe92220
jl 0xe8e77c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0xe92190]
jne 0xe8e8b9
mov eax, dword [0xe92bb0]
cmp eax, 1
je 0xe8e893
test eax, eax
jne 0xe8e7bc
cmp dword [0xe920e4], 1
je 0xe8e893
cmp edx, 0xfc
je 0xe8e8b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0xe8e7f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00e8f670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00e8f490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0xe8e836
lea eax, [ebp - 0x1a4]
push eax
call fcn.00e8f490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0xe9145c
push edi
call fcn.00e8ff00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00e8f670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00e8f680
lea eax, [ebp - 0xa0]
push 0xe9143c
push eax
call fcn.00e8f680
push dword [esi + 0xe92194]
lea eax, [ebp - 0xa0]
push eax
call fcn.00e8f680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00e8fe75
add esp, 0x2c
pop edi
jmp 0xe8e8b9
lea eax, [ebp + 8]
lea esi, [esi + 0xe92194]
push 0
push eax
push dword [esi]
call fcn.00e8f490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x403250
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45e558
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, ecx
push 0xffffffffffffffff
push 0
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
push edi
mov dword [esp + 0x14], esi
mov byte [esi + 4], 0
call fcn.004022a0
lea eax, [edi + 0x1c]
push eax
lea ecx, [esi + 0x1c]
mov dword [esp + 0x18], 0
call fcn.00403090
mov ecx, dword [edi + 0x28]
mov dword [esi + 0x28], ecx
mov edx, dword [edi + 0x2c]
mov dword [esi + 0x2c], edx
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x38]
mov dword [esi + 0x38], edx
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x40], ecx
mov edx, dword [edi + 0x44]
mov dword [esi + 0x44], edx
mov eax, dword [edi + 0x48]
mov dword [esi + 0x48], eax
mov ecx, dword [edi + 0x4c]
mov dword [esi + 0x4c], ecx
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x406018
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45e7a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.00408920
lea edi, [esi + 0x34]
mov ecx, edi
mov dword [esp + 0x24], 0
mov dword [esi], 0x4623f4
call fcn.00405f00
mov dword [edi + 4], eax
mov dword [edi + 8], 0
mov ecx, dword [esp + 0x2c]
mov eax, 1
push 0x1000
mov byte [esp + 0x28], al
mov dword [esi + 0x30], ecx
mov dword [esi + 0x4c], eax
call fcn.00449a29
add esp, 4
lea edx, [esp + 0xc]
push edx
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], 0x1000
mov dword [esi + 0x48], 0
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [esi + 0x60]
push eax
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x4084e0
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x8058]
test eax, eax
jne 0x4084f7
mov eax, dword [esi + 0x8040]
test eax, eax
je 0x408500
mov eax, 1
pop esi
ret 8
mov eax, dword [esi + 0x8050]
test eax, eax
jne 0x408511
mov ecx, esi
call fcn.00407140
mov eax, dword [esi + 0x8050]
test eax, eax
jne 0x40851f
pop esi
ret 8
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ProcessCommand
push eax
call edi
mov dword [esi + 0x8060], eax
mov eax, dword [esi + 0x8050]
push str.DecryptMessage
push eax
call edi
mov ecx, dword [esi + 0x8050]
push str.EncryptMessage
push ecx
mov dword [esi + 0x8064], eax
call edi
mov edx, dword [esi + 0x8050]
push str.EncryptData
push edx
mov dword [esi + 0x8068], eax
call edi
mov dword [esi + 0x806c], eax
mov eax, dword [esi + 0x8050]
push str.DecryptData
push eax
call edi
mov ecx, dword [esi + 0x8050]
push str.InitGSS
push ecx
mov dword [esi + 0x8070], eax
call edi
mov edx, dword [esi + 0x8050]
push str.KillGSS
push edx
mov dword [esi + 0x8074], eax
call edi
mov dword [esi + 0x8078], eax
mov eax, dword [esi + 0x8050]
push str.DoClientAuth
push eax
call edi
mov ecx, dword [esi + 0x8050]
push str.ProcessReply
push ecx
mov dword [esi + 0x807c], eax
call edi
mov edx, dword [esi + 0x8050]
push 0x4626e0
push edx
mov dword [esi + 0x8080], eax
call edi
mov ecx, dword [esi + 0x8060]
test ecx, ecx
mov dword [esi + 0x8084], eax
je 0x408688
mov ecx, dword [esi + 0x8074]
test ecx, ecx
je 0x408688
mov ecx, dword [esi + 0x8078]
test ecx, ecx
je 0x408688
mov ecx, dword [esi + 0x8064]
test ecx, ecx
je 0x408688
mov ecx, dword [esi + 0x8068]
test ecx, ecx
je 0x408688
mov ecx, dword [esi + 0x806c]
test ecx, ecx
je 0x408688
mov ecx, dword [esi + 0x8070]
test ecx, ecx
je 0x408688
mov ecx, dword [esi + 0x807c]
test ecx, ecx
je 0x408688
mov ecx, dword [esi + 0x8080]
test ecx, ecx
je 0x408688
test eax, eax
je 0x408688
mov eax, dword [esp + 0xc]
test eax, eax
mov edi, 1
jne 0x408695
push 4
call fcn.00449985
mov ecx, dword [esp + 0x14]
push ecx
push esi
push 0x407900
push eax
mov dword [esi + 0x8054], eax
call dword [esi + 0x8074]
add esp, 0x14
test eax, eax
jne 0x40868f
mov ecx, esi
call fcn.00407110
pop edi
xor eax, eax
pop esi
ret 8
mov dword [esi + 0x8040], edi
mov dword [esi + 0x8058], edi
mov eax, edi
pop edi
pop esi
ret 8

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

Disassembly:
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x408a4e
mov ecx, eax
mov eax, dword [ecx]
jmp dword [eax + 0x3c]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ecx, dword [ecx + 4]
push eax
mov eax, dword [esp + 8]
push edx
push eax
push ecx
call sub.WS2_32.dll_send
ret 0xc

Function at 0x408c20
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [ecx + 4]
push edx
push eax
call sub.WS2_32.dll_setsockopt
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 0x10