joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4beaa4
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x566368], 0
jne 0x4beb25
cmp dword [0x566388], 0
jne 0x4bead4
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x566388], eax
test eax, eax
jne 0x4bead4
push str.GetEnvironmentStrings_failed
call fcn.004be2d0
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x566388]
jmp 0x4beae8
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004b583c
pop ecx
mov edi, eax
test eax, eax
jne 0x4beae0
lea edi, [ebp + 1]
push edi
call fcn.0045acfc
pop ecx
mov ebx, eax
mov dword [0x56636c], ebx
test ebx, ebx
jne 0x4beb12
xor eax, eax
jmp 0x4bebe8
push edi
mov edx, dword [0x566388]
push edx
push ebx
call fcn.004b5670
add esp, 0xc
jmp 0x4beb45
xor esi, esi
mov ebx, dword [0x566368]
jmp 0x4beb3f
push eax
call fcn.004b583c
pop ecx
test eax, eax
jne 0x4beb3b
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4beb2f
lea ebx, [esi + 4]
push 4
mov dword [0x566370], ebx
inc ebx
push ebx
call fcn.0045b80c
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x4beb68
xor eax, eax
jmp 0x4bebe8
cmp dword [0x566368], 0
jne 0x4beb99
xor esi, esi
mov ebx, dword [0x56636c]
mov eax, dword [esp]
mov ebp, eax
jmp 0x4beb8a
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004b583c
pop ecx
mov edi, eax
test eax, eax
jne 0x4beb80
jmp 0x4bebca
xor esi, esi
mov ebx, dword [0x566368]
mov eax, dword [esp]
mov edi, eax
jmp 0x4bebc4
push eax
call fcn.004b583c
pop ecx
test eax, eax
je 0x4bebb9
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x4bebbd
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4beba8
mov eax, dword [0x566368]
test eax, eax
je 0x4bebda
push eax
call fcn.0045b03c
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x566368], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x40915c
nop
mov ecx, 0x39385318
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x1f494684
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x449912
Capabilities:
Get disk information

Disassembly:
or byte [ebx], dh
shl byte [esi - 0x77], cl
push ecx
push ss
test byte [esi + 0x70], 0x80
je 0x449906
and byte [ecx + 0x19], 0xfb
xor eax, eax
mov word [ecx + 0x16], ax
mov edx, dword [esi + 0x138]
mov dword [ecx + 0x5a], edx
mov eax, dword [esi + 0x13c]
mov dword [ecx + 0x5e], eax
mov dx, word [esi + 0x140]
mov word [ecx + 0x62], dx
test dword [esi + 0x70], 0x2000
je 0x449924
fld dword [esi + 0x15c]
fstp dword [ecx + 0x28]
mov eax, dword [esi + 0x234]
mov dword [ecx + 0xfc], eax
test dword [esi + 0x70], 0x400
je 0x449937
cmp byte [ecx + 0x18], 0x10
jne 0x449937
mov byte [ecx + 0x18], 8
test dword [esi + 0x70], 0x4000
je 0x449944
or byte [ecx + 0x19], 2
test dword [esi + 0x70], 0x600000
je 0x449951
and byte [ecx + 0x19], 0xfd
test byte [esi + 0x70], 0x40
je 0x449975
mov al, byte [ecx + 0x19]
cmp al, 2
je 0x449962
cmp al, 6
jne 0x449975
cmp dword [esi + 0x1ec], 0
je 0x449975
cmp byte [ecx + 0x18], 8
jne 0x449975
mov byte [ecx + 0x19], 3
test byte [esi + 0x70], 4
je 0x449985
cmp byte [ecx + 0x18], 8
jae 0x449985
mov byte [ecx + 0x18], 8
mov al, byte [ecx + 0x19]
mov dl, 1
cmp al, 3
je 0x449998
test al, 2
je 0x449998
mov byte [ecx + 0x1d], dl

Function at 0x449992
Capabilities:
Get disk information

Disassembly:
mov byte [ecx + 0x1d], 3
jmp 0x44999b
test dword [esi + 0x6c], 0x400000
je 0x4499a9
and al, 0xfb
mov byte [ecx + 0x19], al
mov al, byte [ecx + 0x19]
test al, 4
je 0x4499b3
add byte [ecx + 0x1d], dl
test dword [esi + 0x70], 0x8000
je 0x4499d5
cmp al, 2
je 0x4499c4
test al, al
jne 0x4499d5
add byte [ecx + 0x1d], dl
test dword [esi + 0x70], 0x1000000
je 0x4499d5
or al, 4
mov byte [ecx + 0x19], al
test dword [esi + 0x70], 0x100000
je 0x4499f4
mov al, byte [esi + 0x64]
cmp byte [ecx + 0x18], al
jae 0x4499e9
mov byte [ecx + 0x18], al
mov al, byte [esi + 0x65]
cmp byte [ecx + 0x1d], al
jae 0x4499f4
mov byte [ecx + 0x1d], al
mov al, byte [ecx + 0x18]
imul byte [ecx + 0x1d]
mov byte [ecx + 0x1e], al
cmp al, 8
pop esi

Function at 0x51218d
Capabilities:
Encode data using xor

Disassembly:
and ch, byte [ebx + eax]
iretd
mov byte [0x1c7b520b], al
scasb al, byte es:[edi]
jecxz 0x512150
pop ss
and bl, ch
aad 0xf7
push cs
or al, 0x2f
push ss
adc esp, dword [edx]
ficom dword [ebp - 0x22]
add bh, al
or byte [edi - 0x691dc1], 0xc4
mov ebx, 0x80bd0a11
invalid

Function at 0x5173ed
Capabilities:
Encode data using xor

Disassembly:
sal byte [edx], cl
or esp, dword [edx + 0x707c62d6]
ret
test eax, 0x641db3e1
dec esp
adc dword [ebx + esi + 0x114d6336], edx
xor esp, dword [ebx]
cli
cmp al, byte [esi + 0x65911125]
loop 0x51738c
fcomp qword [ebp - 0x694f5d93]
xchg edx, eax
xlatb
push cs
pop es
js 0x517485
salc
pop ss
and ebp, dword [ebx + 0x28885b4f]
adc eax, 0x32a662e1
sub byte [eax], al
invalid
push ecx
stc
stosb byte es:[edi], al
nop
out 0x37, eax
or byte [esi + 0x477a350d], 0xeb
push edi
stosd dword es:[edi], eax
lea edx, [eax]
or ecx, esp
test dword [bx + 0x39], edi
imul ecx, dword [ebx - 0x64ccd2dc], 0xf451508d
jne 0x517493
inc eax
or byte [esi + 0x68], bh
fst dword [esi + 0x7e99f83b]
inc ebp
inc eax
les edx, cs:[edi]
inc eax
dec esi
or byte [edi - 0x5d], dl
hlt
Function at 0x5a0f56
Capabilities:
Encode data using xor

Disassembly:
sub al, byte [0x4f58b987]
push ss
into
ljmp 0x47dd:0xc3f3b379
xchg byte [ebx], ah
mov ah, 0x77
loop 0x5a0f92
call 0x16bf435f
aad 0x1f
sub byte [ebp - 0xb], ch
sub byte [eax + 7], ch
cmp byte [edx], al
invalid
pop esp
pop ecx
fmul dword [ebx - 0x3dd54d85]
mov ch, 0x9b
test dword [ecx + edx], edx
adc al, 0x11
xor al, 0xe9
les eax, [esi]
sbb ah, byte [edi]
in eax, 0x46
fnstcw word [ebp + 0x38]
js 0x5a0f33
daa
inc esp
inc ebp
wait
xor eax, 0x5505de9e
mov bl, byte [ebp - 0x40]
xchg edx, eax
mov al, 0xd8
idiv dword [edi]
mov cl, 0x2f
js 0x5a0f9d
sub ch, byte [eax]
cmp ecx, edx
je 0x5a1046
inc edi
mov eax, ds
mov ecx, 0xb5198845
and eax, 0xa672518a
cmpsd dword [esi], dword es:[edi]
lcall 0x148e, 0xb907eeea
sub byte [eax], al
retf 0xe7cc
or byte [esi], al
invalid

Function at 0x5a704a
Capabilities:
Authenticate hmac

Disassembly:
xor al, dl
mov edi, 0xa6252bb
xchg byte cs:[edx - 0x5d], al
fisub word [esi + 0x75]
or byte [esi + ecx*4 - 0x23], dh
mov al, byte [0x173addf6]
and eax, dword [edi]
sbb byte [edx + edi*8 + 0x2c], bl
mov dword ds:[ebx + edx*2 - 0x2c], esp
and dword [ebx], ebx
and esi, dword [ebx + 0x52]
mov esi, edi
imul ebp, dword [eax - 0xd], 0xeeb2cf8a
mov eax, 0x489e3b23
fisubr dword [ecx + ebx*4]
cmp al, 0x42
pop edi
push esi
sub eax, 0xb0b5e920
xchg edx, eax
push cs
dec edx

Function at 0x5f7a0a
Capabilities:
Encode data using xor

Disassembly:
xor eax, 0x9380bfa6
xchg ebx, eax
and bh, byte [esi - 0x1e22fdfa]
jne 0x5f79de
push esp
bound esi, qword [ecx - 0x4cde96f7]
push edx
invalid
jg 0x5f7a0f
push ss
aad 0x9f
movsb byte es:[edi], byte [esi]
stc
jmp 0x5f79e2

Function at 0x62cc12
Capabilities:
Encode data using xor

Disassembly:
dec edi
fsubp st(4)
jne 0x62cc24
adc byte [edi], bh
das
imul esi, dword [eax], 0x7d
int3
inc edx

Function at 0x637053
Capabilities:
Encode data using xor

Disassembly:
pushal
pop ebp
cli
in eax, dx
sub al, 0xb2
movsb byte es:[edi], byte [esi]
mov dl, 0xa4
loop 0x637008
cld
mov bh, 0x89
mov al, 0x2d
push ecx
in eax, dx
dec esp
in al, 0xfe
push cs
lea ebp, [ebx]
pop ecx
sbb eax, dword [esi*4 - 0x46c14244]
movsd dword es:[edi], dword [esi]
and eax, 0xfc72068c
push ebp
xchg ebp, eax
xchg dword [ebp + ebx*8 + 0x796ccdb0], ecx
xchg esp, eax
sub al, 0x8c
sbb eax, 0xb660c870
invalid
scasb al, byte es:[edi]
pop edi
jle 0x637003
xor byte [edi + ecx*2 + 0x79695f59], bl
add dword [edi - 0x1b], ebp
pop ebp
cmpsb byte [esi], byte es:[edi]
dec ecx
mov cs, eax
sahf
dec ecx
invalid

Function at 0x638db2
Capabilities:
Encode data using xor

Disassembly:
leave
lodsb al, byte [esi]
sbb dword [edi], edi
push 0xffffffffffffffb8
out dx, al
outsb dx, byte [esi]
pop ebx
mov eax, dword [0xe4d2fd7d]
invalid
Function at 0x4027f4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ecx
xor eax, eax
push eax
push eax
push eax
push 0x402729
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
call fcn.00403d3d
push dword [esp + 4]
push ecx
push dword [esp + 0xc]
push ecx
push dword [esp + 0x14]
mov ecx, 0x4836b8
call fcn.0040285e
pop ecx
mov ecx, eax
call fcn.0040285e
pop ecx
mov ecx, eax
call fcn.0040285e
push eax
call fcn.00403c92
pop ecx
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x408657
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x408678
jl 0x40866f
test edi, edi
jne 0x408678
xor eax, eax
xor edx, edx
jmp 0x408739
cmp dword [ebx + 0x38], 0
je 0x40868d
push eax
push edi
push dword [ebp + 8]
call fcn.0040873f
jmp 0x408739
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4086d4
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4086d4
cmp eax, edi
jb 0x4086ae
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040b950
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x4086da
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40872e
mov ecx, ebx
call fcn.00407eee
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x408719
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0041689b
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x40872e
jmp 0x4086ec
test edx, edx
je 0x40872e
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0041689b
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40b72e
Capabilities:
Parse pe header

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

Function at 0x41df31
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f398
push 0x42f390
push str.FlsAlloc
push 0x1e
call fcn.0041dd9e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41df65
push dword [ebp + 8]
mov ecx, esi
call dword [0x42b144]
call esi
jmp 0x41df6b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x41f4b5
Capabilities:
Read file on windows

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

Function at 0x41f4c0
Capabilities:
Read file on windows

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

Function at 0x41f8ba
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040b8a0
mov eax, dword [0x436040]
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.0041cb8f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41f8fc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41fa58
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042a250
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 + 0x484068]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00420a8a
mov ecx, dword [esi*4 + 0x484068]
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 0x41fa51
cmp eax, dword [edi + ecx + 0x24]
jne 0x41fa51
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 0x41fa51
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00420a8a
add esp, 0x14
test edx, edx
jl 0x41fa51
jg 0x41f9c7
test eax, eax
jb 0x41fa51
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41fa51
jl 0x41f9e1
cmp dword [ebp - 0x1008], eax
ja 0x41fa51
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41f9ff
test ebx, ebx
je 0x41fa38
cmp ecx, edi
jae 0x41fa38
mov al, byte [ecx]
cmp al, 0xd
jne 0x41fa19
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41fa25
cmp byte [ecx + 1], 0xa
jne 0x41fa25
inc ecx
jmp 0x41fa25
movzx eax, al
movsx eax, byte [eax + 0x436300]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41f9ff
cmp edx, ebx
jne 0x41f9ff
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41fa56
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040aa76
leave
ret
Function at 0x41ff28
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 + 0x484068]
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 0x41ff68
cmp byte [ebx], 0xa
jne 0x41ff68
or byte [eax + edi + 0x28], 4
jmp 0x41ff6d
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x42006b
mov al, byte [edx]
cmp al, 0x1a
je 0x42004d
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41ff9c
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41ffc1
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41ffcb
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 0x41ff7e
jmp 0x42006b
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 0x420048
cmp dword [ebp - 0xc], 0
je 0x420048
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x484068]
test byte [eax + edi + 0x28], 0x48
je 0x420022
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42000d
mov byte [esi], dl
jmp 0x42001e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x484068]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42006b
cmp byte [ebp - 1], 0xa
jne 0x420031
cmp esi, ebx
jne 0x420031
mov byte [esi], 0xa
jmp 0x42006a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00420aa8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42006b
mov byte [esi], 0xd
jmp 0x42006a
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x484068]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x420067
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42006b
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x420074
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 + 0x484068]
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 0x4200b7
cmp word [esi], dx
jne 0x4200b7
or byte [edi + eax + 0x28], 4
jmp 0x4200bc
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 0x42020f
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 0x4201ef
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4200fe
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x420134
cmp eax, edx
jae 0x420140
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 0x4200d6
jmp 0x42020f
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 0x4201eb
cmp dword [ebp - 0x14], 0
je 0x4201eb
mov eax, dword [ebx*4 + 0x484068]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4201c3
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x42018c
mov word [esi], cx
jmp 0x4201bf
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x484068]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x484068]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x484068]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x42020f
pop ebx
cmp word [ebp - 4], bx
jne 0x4201d4
cmp esi, dword [ebp + 0xc]
jne 0x4201d4
mov word [esi], bx
jmp 0x42020c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00420aa8
add esp, 0x10
cmp word [ebp - 4], bx
je 0x42020f
push 0xd
jmp 0x420208
mov ecx, dword [ebx*4 + 0x484068]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x420206
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42020f
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 0x406024
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406048
xor eax, eax
test eax, eax
je 0x40605a
cmp byte [ebp + eax - 0x121], 0x5c
je 0x40605a
xor ecx, ecx
jmp 0x40605d
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x406107
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42229c], 0
push esi
jne 0x40613e
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406118
mov dword [ecx*4 + 0x422298], eax
inc ecx
cmp ecx, 0x100
jl 0x406113
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40616f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422298]
xor eax, esi
inc ecx
dec edx
jne 0x406151
pop edi
not eax
pop esi
ret 0xc

Function at 0x436000
Capabilities:
Accept command line arguments
Check os version
Copy file
Delete file
Get common file path
Get file system object information
Packed with generic packer
Set current directory
Set environment variable
Shutdown system
Terminate process

Disassembly:
pushal
push 0x436031
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x43603a
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [0x436047]
push 0
push 0
push 0
push edx
push 0
push 0
call eax
popal
jmp fcn.004030d9
Function at 0x10003760
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [eax + 0x70], 0
mov dword [eax + 0x4c], ecx
jne 0x10003773
mov dword [eax + 0x70], 1
mov dword [eax + 0x54], ecx
mov edx, ecx
sub edx, dword [eax + 0x54]
cmp edx, 0x2710
jge 0x10003788
cmp edx, 0xffffd8f0
jge 0x1000378d
mov dword [eax + 0x54], ecx
jmp 0x10003791
test edx, edx
js 0x100037ac
mov edx, dword [eax + 0x50]
add dword [eax + 0x54], edx
push esi
push edi
mov edi, ecx
sub edi, dword [eax + 0x54]
pop edi
pop esi
js 0x100037a7
add edx, ecx
mov dword [eax + 0x54], edx
jmp fcn.10003170
ret

Function at 0x10003920
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x1001b230]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi], vtable.CTcpSocket.0
mov dword [esi + 0x50], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov eax, vtable.CBuffer.0
mov dword [esi + 0x44], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x60], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x64], eax
lea eax, [ebp - 0x198]
push eax
push 0x202
mov dword [esi + 0x70], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
lea ecx, [esi + 0x18]
push ecx
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x14], edi
xor ecx, ebp
mov dword [esi + 0x7c], 0xffffffff
mov eax, esi
pop edi
call fcn.100082f7
mov esp, ebp
pop ebp
ret