joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cddc8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x4cddd0
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4d61d8
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d637f
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, 0x4d6398
call fcn.004291ac
mov eax, dword [ebp - 4]
test eax, eax
je 0x4d6210
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x4d624b
mov eax, dword [ebp - 4]
cmp eax, 0x4d63b4
jne 0x4d6222
mov al, 1
jmp 0x4d6247
cmp dword [ebp - 4], 0
je 0x4d6231
mov eax, 0x4d63b4
test eax, eax
jne 0x4d6235
xor eax, eax
jmp 0x4d6247
mov edx, 0x4d63b4
mov eax, dword [ebp - 4]
call fcn.004200bc
test eax, eax
sete al
xor al, 1
jmp 0x4d624d
xor eax, eax
test al, al
je 0x4d6364
mov eax, dword [ebp - 4]
cmp eax, 0x4d63c4
jne 0x4d6263
mov al, 1
jmp 0x4d6288
cmp dword [ebp - 4], 0
je 0x4d6272
mov eax, 0x4d63c4
test eax, eax
jne 0x4d6276
xor eax, eax
jmp 0x4d6288
mov edx, 0x4d63c4
mov eax, dword [ebp - 4]
call fcn.004200bc
test eax, eax
sete al
test al, al
jne 0x4d6364
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004d6084
mov ebx, dword [ebp - 4]
mov eax, ebx
test eax, eax
je 0x4d62a8
sub eax, 4
mov eax, dword [eax]
cmp eax, 0xdc
jle 0x4d6356
mov ecx, ebx
test ecx, ecx
je 0x4d62be
sub ecx, 4
mov ecx, dword [ecx]
mov eax, ecx
mov ecx, 0xdc
cdq
idiv ecx
mov ecx, eax
test ebx, ebx
je 0x4d62d3
sub ebx, 4
mov ebx, dword [ebx]
mov eax, ebx
mov ebx, 0xdc
cdq
idiv ebx
test edx, edx
jle 0x4d62e2
inc ecx
dec ecx
test ecx, ecx
jl 0x4d6364
inc ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0
xor eax, eax
push ebp
push 0x4d6345
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.0040a29c
lea eax, [ebp - 8]
push eax
imul edx, dword [ebp - 0xc], 0xdc
inc edx
mov ecx, 0xdc
mov eax, dword [ebp - 4]
call fcn.0040b140
mov eax, dword [ebp - 8]
call fcn.0040ad7c
push eax
call sub.kernel32.dll_OutputDebugStringW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d634c
lea eax, [ebp - 8]
call fcn.0040a29c
ret
mov eax, dword [ebp - 4]
call fcn.0040ad7c
push eax
call sub.kernel32.dll_OutputDebugStringW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d6386
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a2fc
ret
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x40520c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405245
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40524e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405258
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405279
mov al, byte [esp]
jmp 0x40527b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4062da
Capabilities:
Encode data using xor

Disassembly:
add eax, 0x81451aa3
test dword [ebx], ecx
push esi
inc ebp
xor edx, ebx
pop esi
xor edx, esi
xor ebx, ebx
add ebx, edx
mov edi, 4
sub esp, edi
mov dword [esp], ebx
mov ebx, 0
mov edi, 0
xor ebx, edi
mov ecx, 0x400000
mov edx, 0
xor ecx, edx
xor ebx, ecx
mov edi, 0x608ec56f
mov ecx, 0xc271d2e
xor ecx, edi
mov esi, 0x65ff09f2
xor esi, 0x956c1b3
xor esi, ecx
xor ebx, esi
mov edi, 0
xor edi, ebx
mov ecx, 4
sub esp, ecx
mov dword [esp], edi
call eax
pop ecx
mov edx, 0x28045920
mov esi, 0x41f8a0c0
xor edx, esi
mov ebx, 0x56bfe135
xor ebx, 0x6c66fd6c
xor ebx, edx
push 0x60cbda8a
mov ecx, 0x30efde86
pop edx
xor ecx, edx
mov eax, 0x3012090
mov esi, 0xc200
xor eax, esi
xor ecx, eax
xor ecx, ebx
push 0x1f5c71bc
mov eax, 0x1d5871bb
pop ebx
xor eax, ebx
push eax
mov eax, 0x45e1589c
mov edx, 0x47e51899
xor edx, eax
pop edi
xor edx, edi
mov esi, 0x4484007
mov edi, 0x2873150
xor esi, edi
mov edi, esi
xor edi, 0xffffffff
and edi, 0x68f504f
and esi, 0xf970afb0
or esi, edi
xor edx, esi
mov edi, 0x6037caa9
mov esi, 0x1c5ee25f
xor esi, edi
mov edi, 0x51a3fcaa
xor esi, edi
xor esi, 0x6c62594f
push 0x345192aa
mov edi, 0x75b99315
pop ebx
xor edi, ebx
xor esi, edi
push 0xa086f9d
mov eax, 0xa086f99
pop ebx
xor eax, ebx
sub esp, eax
xor edi, edi
add edi, esp
mov dword [edi], ecx
mov eax, esi
push eax
pop edi
mov eax, 0
mov ebx, 4
xor eax, ebx
sub esp, eax
mov dword [esp], edi
xor ecx, ecx
mov cl, byte [edx]
add esi, ecx
mov cl, byte [esi]
pop esi
mov byte [edx], cl
mov edi, 0x1010b1a
mov ebx, 0x240040
xor edi, ebx
push 0xd8c31cea
mov eax, 0x2619e84f
pop ebx
xor eax, ebx
xor edi, eax
add edx, edi
pop ecx
mov edi, 0x28507dfb
xor edi, 0xd7af8204
add ecx, edi
cmp ecx, 0
jne 0x4063df
mov ecx, 0x40001826
mov edx, 0x74c0511
xor ecx, edx
mov esi, ecx
xor esi, 0xffffffff
and esi, 0x2b87ea70
and ecx, 0xd478158f
or ecx, esi
mov edx, ecx
add esp, 0xfffffffc
mov dword [esp], edx
push 0x30666706
mov eax, 0x61342e34
pop esi
xor eax, esi
push 0x6c5ae26c
mov edi, 0x518301ef
pop edx
xor edi, edx
xor edi, eax
pop ebx
xor edi, ebx
call edi
pop ecx
pop ecx
ret
Function at 0x4b3a80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x71000]
push edi
jmp 0x4b3a9a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b3aa1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b3a90
mov eax, 1
add ebx, ebx
jne 0x4b3ab3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b3ac4
jne 0x4b3ae3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b3ae3
dec eax
add ebx, ebx
jne 0x4b3ad0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b3aa8
add ebx, ebx
jne 0x4b3adf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b3b35
xor ecx, ecx
sub eax, 3
jb 0x4b3afb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b3b6a
sar eax, 1
mov ebp, eax
jmp 0x4b3b06
add ebx, ebx
jne 0x4b3b06
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b3ad4
inc ecx
add ebx, ebx
jne 0x4b3b14
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b3ad4
add ebx, ebx
jne 0x4b3b21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b3b16
jne 0x4b3b32
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b3b16
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b3b54
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b3b46
jmp 0x4b3a96
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b3b54
add edi, ecx
jmp 0x4b3a96
pop esi
mov edi, esi
mov ecx, 0x377e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b3b72
cmp byte [edi], 0x11
jne 0x4b3b72
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4b3b77
lea edi, [esi + 0xaf000]
mov eax, dword [edi]
or eax, eax
je 0x4b3bef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb68ec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb6a40]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b3ba4
mov ecx, edi
jns 0x4b3bd3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb6a44]
or eax, eax
je 0x4b3be9
mov dword [ebx], eax
add ebx, 4
jmp 0x4b3bc1
call dword [esi + 0xb6a54]
mov ebp, dword [esi + 0xb6a48]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4b3c23
sub esp, 0xffffff80
jmp 0x416310
Function at 0x418dec
Capabilities:
Read file on windows

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

Function at 0x4191e6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407f40
mov eax, dword [0x457d00]
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.00415f5b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x419228
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x419384
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004234f0
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 + 0x4598e8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041a1dd
mov ecx, dword [esi*4 + 0x4598e8]
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 0x41937d
cmp eax, dword [edi + ecx + 0x24]
jne 0x41937d
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 0x41937d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041a1dd
add esp, 0x14
test edx, edx
jl 0x41937d
jg 0x4192f3
test eax, eax
jb 0x41937d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41937d
jl 0x41930d
cmp dword [ebp - 0x1008], eax
ja 0x41937d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41932b
test ebx, ebx
je 0x419364
cmp ecx, edi
jae 0x419364
mov al, byte [ecx]
cmp al, 0xd
jne 0x419345
lea eax, [edi - 1]
cmp ecx, eax
jae 0x419351
cmp byte [ecx + 1], 0xa
jne 0x419351
inc ecx
jmp 0x419351
movzx eax, al
movsx eax, byte [eax + 0x457fd8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41932b
cmp edx, ebx
jne 0x41932b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x419382
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040742b
leave
ret
Function at 0x41967b
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 + 0x4598e8]
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 0x4196bb
cmp byte [ebx], 0xa
jne 0x4196bb
or byte [eax + edi + 0x28], 4
jmp 0x4196c0
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4197be
mov al, byte [edx]
cmp al, 0x1a
je 0x4197a0
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4196ef
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x419714
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41971e
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 0x4196d1
jmp 0x4197be
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 0x41979b
cmp dword [ebp - 0xc], 0
je 0x41979b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4598e8]
test byte [eax + edi + 0x28], 0x48
je 0x419775
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x419760
mov byte [esi], dl
jmp 0x419771
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4598e8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4197be
cmp byte [ebp - 1], 0xa
jne 0x419784
cmp esi, ebx
jne 0x419784
mov byte [esi], 0xa
jmp 0x4197bd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041a1fb
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4197be
mov byte [esi], 0xd
jmp 0x4197bd
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4598e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4197ba
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4197be
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4197c7
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 + 0x4598e8]
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 0x41980a
cmp word [esi], dx
jne 0x41980a
or byte [edi + eax + 0x28], 4
jmp 0x41980f
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 0x419962
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 0x419942
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x419851
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x419887
cmp eax, edx
jae 0x419893
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 0x419829
jmp 0x419962
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 0x41993e
cmp dword [ebp - 0x14], 0
je 0x41993e
mov eax, dword [ebx*4 + 0x4598e8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x419916
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4198df
mov word [esi], cx
jmp 0x419912
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4598e8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4598e8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4598e8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x419962
pop ebx
cmp word [ebp - 4], bx
jne 0x419927
cmp esi, dword [ebp + 0xc]
jne 0x419927
mov word [esi], bx
jmp 0x41995f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041a1fb
add esp, 0x10
cmp word [ebp - 4], bx
je 0x419962
push 0xd
jmp 0x41995b
mov ecx, dword [ebx*4 + 0x4598e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419959
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419962
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 0x41b759
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 0x41b7f6
push ebx
push esi
call fcn.0041b722
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.0041a3a7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41b7a3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b7f5
push edi
push eax
call fcn.00415126
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41b7c3
call fcn.00414efc
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b7f4
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041a3a7
add esp, 0x20
test eax, eax
jne 0x41b7e2
push edi
call fcn.00414efc
jmp 0x41b7ea
push ebx
call fcn.00414efc
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 0x4232f0
Capabilities:
Parse pe header

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

Function at 0x424000
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
push str.Success_created.
push 0x459038
mov ebx, ecx
call fcn.00401160
push eax
call fcn.00401e70
push 8
call fcn.004073e8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x424062
push 4
call fcn.004073e8
add esp, 4
test eax, eax
je 0x424040
mov dword [eax], 0x424bc0
jmp 0x424042
xor eax, eax
lea edi, [esi + 4]
push edi
push 0
push eax
push 0x401e50
push 0
push 0
call fcn.0040e506
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x42409d
jmp 0x424064
xor esi, esi
cmp dword [esi + 4], 0
je 0x4240aa
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [esi + 4], eax
je 0x4240b1
push 0
push dword [esi + 4]
push dword [esi]
call fcn.004050d5
add esp, 0xc
test eax, eax
jne 0x4240b8
push 8
push esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.00407418
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
ret
push 6
mov dword [edi], 0
call fcn.0040528b
push 1
call fcn.0040528b
push 5
call fcn.0040528b
push 2
call fcn.0040528b
int3
Function at 0x4029f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
movzx eax, byte [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [esp], eax
movzx esi, byte [edx + eax + 4]
xor eax, eax
test esi, esi
je 0x402a6e
movzx ebx, byte [edx + esi*2 + 0x32]
test bl, bl
je 0x402a6e
mov bh, byte [esp + 0x20]
lea ebp, [edx + 0x94]
xor edi, edi
xor bh, 1
xor eax, eax
jmp 0x402a3a
inc edi
movzx edx, bl
cmp edi, edx
mov edx, ecx
jae 0x402a6e
mov ecx, edx
movzx edx, byte [edx + esi*2 + 0x33]
add edx, ebp
movzx edx, byte [edi + edx]
cmp dl, byte [esp]
sete dh
test dh, bh
jne 0x402a30
cmp eax, dword [esp + 0x28]
jge 0x402a30
mov dh, bh
mov ebx, ebp
mov ebp, dword [esp + 0x24]
mov byte [ebp + eax], dl
mov ebp, ebx
mov bh, dh
inc eax
mov bl, byte [ecx + esi*2 + 0x32]
jmp 0x402a30
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x414e70
Capabilities:
Act as tcp client
Check for time delay via gettickcount
Connect tcp socket
Connect udp socket
Create udp socket
Get socket status
Receive data
Receive data on socket
Set socket configuration

Disassembly:
mov eax, dword [0x65e008]
dec eax
cmp eax, 3
ja case.default.0x414e7b
jmp dword [eax*4 + 0x4f8750]
jmp 0x415330
ret
jmp 0x415990
jmp 0x414f70
jmp fcn.00402410
push esi
push 0x14
push 1
call fcn.004ce7a4
add esp, 8
mov esi, eax
mov dword [0x8e7c28], eax
mov dword [eax + 8], 0xffffffff
mov dword [eax + 0x10], 0x400
push 0x400
call fcn.004cfdf3
add esp, 4
mov dword [esi + 0xc], eax
pop esi
jmp fcn.00414fb0
push 0x414
push 1
call fcn.004ce7a4
add esp, 8
mov dword [0x8e7c30], eax
lea ecx, [eax + 0x14]
add eax, 4
push 0x400
push ecx
push eax
call fcn.004037b0
add esp, 0xc
push dword [0x65e018]
push str.COM8
call fcn.004c0550
add esp, 8
mov ecx, dword [0x8e7c30]
mov dword [ecx], eax
test eax, eax
je 0x41538d
push 0x4153b0
push eax
call fcn.004c09e0
add esp, 8
mov eax, str.open_serial_port__s_success__r_n
jmp 0x415392
mov eax, str.open_serial_port__s_fail_r_n
push str.COM8
push eax
call fcn.00401220
add esp, 8
ret
push esi
push 0x41c
push 1
call fcn.004ce7a4
add esp, 8
mov dword [0x8e7c40], eax
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, dword [0x8e7c40]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x415a07
mov dword [esi + 8], 0x400
push 0x400
call fcn.004cfdf3
add esp, 4
mov dword [esi + 4], eax
lea eax, [esi + 0x1c]
add esi, 0xc
push 0x400
push eax
push esi
call fcn.004037b0
add esp, 0xc
mov byte [0x8e7c44], 1
push 0
push 0x415a10
push 0
push 0x8e7c48
call fcn.004c0460
add esp, 0x10
pop esi
ret
Function at 0x414f00
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [0x65e008]
dec ecx
cmp ecx, 3
ja case.default.0x414f10
mov eax, dword [esp + 4]
jmp dword [ecx*4 + 0x4f8770]
push eax
call fcn.00415440
add esp, 4
ret
xor eax, eax
ret
push eax
call fcn.00415bb0
add esp, 4
ret
jmp 0x4150f0
push eax
call fcn.00415c50
add esp, 4
ret
push ebp
push ebx
push edi
push esi
sub esp, 0x118
mov eax, dword [0x8e4a3c]
xor eax, esp
mov dword [esp + 0x114], eax
xor esi, esi
cmp dword [0x8e7c28], 0
je 0x4151ff
call sub.KERNEL32.dll_GetTickCount
mov edi, eax
mov eax, dword [0x8e7c28]
mov ecx, dword [eax]
cmp ecx, 2
je 0x41514f
cmp ecx, 1
je 0x4151ed
test ecx, ecx
jne 0x4151ff
sub edi, dword [eax + 4]
cmp edi, 0x1389
jb 0x4151ff
jmp 0x4151fa
mov ebx, dword [eax + 8]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 1
mov dword [esp], 0
mov dword [esp + 4], 0
lea eax, [ebx + 1]
mov ecx, esp
lea ebp, [esp + 0x10]
push ecx
push 0
push 0
push ebp
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x4151ff
push ebp
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4151ff
mov eax, dword [0x8e7c28]
push 0
push dword [eax + 0x10]
push dword [eax + 0xc]
push ebx
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
mov eax, dword [0x8e7c28]
test ebx, ebx
jle 0x4152a7
push dword [eax + 0x10]
push dword [eax + 0xc]
push dword [esp + 0x134]
call fcn.004025b0
add esp, 0xc
cmp byte [0x8e54fc], 0
je 0x4151e9
mov eax, dword [0x8e7c28]
push ebx
push dword [eax + 0xc]
push 0x6596d3
call fcn.00403dd0
add esp, 0xc
mov esi, ebx
jmp 0x4151ff
mov ecx, edi
sub ecx, dword [eax + 4]
cmp ecx, 0x7d1
jb 0x41521a
call fcn.00414fb0
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004c0e60
mov eax, esi
add esp, 0x118
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [eax + 8]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 1
mov dword [esp], 0
mov dword [esp + 4], 0
lea eax, [ebx + 1]
mov ecx, esp
lea ebp, [esp + 0x10]
push ecx
push 0
push ebp
push 0
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x4151ff
push ebp
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4151ff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0x1007
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_getsockopt]
mov ecx, dword [0x8e7c28]
test eax, eax
js 0x4152c3
cmp dword [esp + 0xc], 0
jne 0x4152c3
mov dword [ecx], 2
mov dword [ecx + 4], edi
jmp 0x4151ff
push dword [eax + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [0x8e7c28]
mov dword [eax], 0
mov dword [eax + 4], edi
jmp 0x4151ff
push dword [ecx + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [0x8e7c28]
mov dword [eax], 0
mov dword [eax + 4], edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x4151ff
call fcn.004cc2e5
mov dword [eax], edi
jmp 0x4151ff