joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5aacd0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
call fcn.005aad30
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
ja fcn.005e5c0f
push eax
push dword [ebp + 8]
call fcn.005db924
test al, al
je fcn.005e5c0f
pop ebp
ret
Function at 0x5ac720
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [edx], 0x61707865
mov dword [edx + 4], 0x3320646e
mov dword [edx + 8], 0x79622d32
mov dword [edx + 0xc], 0x6b206574
mov eax, dword [ecx]
mov dword [edx + 0x10], eax
mov eax, dword [ecx + 4]
mov dword [edx + 0x14], eax
mov eax, dword [ecx + 8]
mov dword [edx + 0x18], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 0x1c], eax
mov eax, dword [ecx + 0x10]
mov dword [edx + 0x20], eax
mov eax, dword [ecx + 0x14]
mov dword [edx + 0x24], eax
mov eax, dword [ecx + 0x18]
mov dword [edx + 0x28], eax
mov eax, dword [ecx + 0x1c]
mov dword [edx + 0x2c], eax
pop ebp
ret

Function at 0x5b28e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x40
mov eax, dword [0x631220]
xor eax, esp
mov dword [esp + 0x3c], eax
xorps xmm0, xmm0
mov dword [0x63a6b0], 0
xor eax, eax
movdqa xmmword [esp], xmm0
mov word [esp], ax
lea eax, [esp]
push eax
movdqa xmmword [esp + 0x14], xmm0
mov dword [esp + 0x24], 0
call dword [0x629248]
mov ax, word [esp]
cmp ax, 6
je 0x5b2934
cmp ax, 9
jne 0x5b293e
mov dword [0x63a6b0], 1
call fcn.005b7910
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.005e0482
mov esp, ebp
pop ebp
ret
Function at 0x5b2e40
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x2c4
mov eax, dword [0x631220]
xor eax, esp
mov dword [esp + 0x2c0], eax
mov eax, dword [esp + 0x2d4]
push ebx
mov ebx, dword [esp + 0x2d0]
push ebp
push esi
mov dword [esp + 0xc], eax
mov ebp, ebx
xor esi, esi
xor eax, eax
push edi
mov edi, dword [esp + 0x2e0]
and ebp, 1
jne 0x5b2e85
test bl, 3
jne 0x5b2f5d
push 0x4ca174
lea eax, [esp + 0x1a8]
push 0x64
push eax
call fcn.005e3618
movzx eax, word [edi + 6]
push eax
movzx eax, word [edi + 4]
push eax
movzx eax, word [edi + 2]
push eax
movzx eax, word [edi]
push eax
lea eax, [esp + 0x1c0]
push eax
push 0x4d65e4
lea eax, [esp + 0x38]
push 0x64
push eax
call fcn.005e0440
movzx eax, word [edi + 8]
push eax
movzx eax, byte [edi + 0xb]
push eax
movzx eax, byte [edi + 0xa]
push eax
lea eax, [esp + 0x4c]
push eax
push 0x4d65f8
lea eax, [esp + 0xb8]
push 0x64
push eax
call fcn.005e0440
add esp, 0x48
lea eax, [esp + 0x78]
push eax
push 0x4d41d0
lea eax, [esp + 0xe4]
push 0xc8
push eax
call fcn.005e0440
lea esi, [esp + 0xec]
add esp, 0x10
lea ecx, [esi + 1]
lea esp, [esp]
mov al, byte [esi]
inc esi
test al, al
jne 0x5b2f20
sub esi, ecx
cmp esi, 0xc8
jae 0x5b30da
mov byte [esp + esi + 0xdc], al
lea eax, [esi + 1]
push eax
lea eax, [esp + 0xe0]
push eax
lea eax, [esp + 0x210]
push eax
call fcn.005e08e0
add esp, 0xc
mov eax, 1
test bl, 2
je 0x5b308e
cmp dword [esp + 0x2d8], 1
je 0x5b308e
cmp word [edi + 0x10], 0
jne 0x5b2f86
cmp word [edi + 0x12], 0
je 0x5b308e
xor ebx, ebx
test ebp, ebp
je 0x5b2fb4
cmp eax, 1
jne 0x5b2fbb
mov byte [esp + esi + 0x208], 0x7c
inc esi
cmp esi, 0xc8
jae 0x5b30da
lea ebx, [esp + 0x208]
add ebx, esi
mov byte [ebx], 0
jmp 0x5b2fbb
lea ebx, [esp + 0x208]
push 0x4ca174
lea eax, [esp + 0x7c]
push 0x64
push eax
call fcn.005e3618
movzx eax, word [edi + 0x16]
push eax
movzx eax, word [edi + 0x14]
push eax
movzx eax, word [edi + 0x12]
push eax
movzx eax, word [edi + 0x10]
push eax
lea eax, [esp + 0x94]
push eax
push 0x4d65e4
lea eax, [esp + 0x38]
push 0x64
push eax
call fcn.005e0440
movzx eax, word [edi + 0x18]
push eax
movzx eax, byte [edi + 0x1b]
push eax
movzx eax, byte [edi + 0x1a]
push eax
lea eax, [esp + 0x4c]
push eax
push 0x4d65f8
lea eax, [esp + 0x1e4]
push 0x64
push eax
call fcn.005e0440
add esp, 0x48
lea eax, [esp + 0x1a4]
push eax
push 0x4d41d0
lea eax, [esp + 0xe4]
push 0xc8
push eax
call fcn.005e0440
lea edi, [esp + 0xec]
add esp, 0x10
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x5b3050
sub edi, ecx
cmp edi, 0xc8
jae 0x5b30da
mov byte [esp + edi + 0xdc], al
mov eax, 0xc8
sub eax, esi
cmp eax, edi
jb 0x5b308a
lea eax, [edi + 1]
push eax
lea eax, [esp + 0xe0]
push eax
push ebx
call fcn.005e08e0
add esp, 0xc
jmp 0x5b308c
xor edi, edi
add esi, edi
cmp esi, 0xc8
jae 0x5b30da
mov byte [esp + esi + 0x208], 0
cmp dword [esp + 0x2e8], esi
jb 0x5b30bf
lea eax, [esi + 1]
push eax
lea eax, [esp + 0x20c]
push eax
push dword [esp + 0x18]
call fcn.005e08e0
add esp, 0xc
mov ecx, dword [esp + 0x2d0]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005e0482
add esp, 0x2c4
ret
call fcn.005e531c
int3
Function at 0x5b60d0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
test esi, esi
je 0x5b6117
push edi
mov edi, dword [esp + 0xc]
movzx edx, byte [edi]
lea edi, [edi + 1]
mov ecx, edx
shr edx, 4
xor ecx, eax
shr eax, 4
and ecx, 0xf
and eax, 0xfff
xor eax, dword [ecx*4 + 0x62fba8]
xor edx, eax
shr eax, 4
and edx, 0xf
and eax, 0xfff
xor eax, dword [edx*4 + 0x62fba8]
dec esi
jne 0x5b60e0
pop edi
pop esi
ret 8

Function at 0x5b77f0
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x18
mov eax, dword [0x631220]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [0x629194]
call esi
test eax, eax
jns 0x5b78a2
call esi
cmp al, 4
jae 0x5b78a2
push edi
push 0x14
lea eax, [esp + 0xc]
push eax
push 0x4ca174
push 0x4d6614
push 0x4d6620
call dword [0x629130]
xor esi, esi
mov edi, 0x62fbf0
lea ecx, [ecx]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5b7845
sub eax, edx
push eax
lea eax, [esp + 0xc]
push eax
push edi
call fcn.005e6150
add esp, 0xc
test eax, eax
je 0x5b7885
inc esi
add edi, 8
cmp esi, 0x10
jb 0x5b7840
pop edi
mov dword [0x638bbc], 0x809
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.005e0482
add esp, 0x18
ret
mov eax, dword [esi*8 + 0x62fbf4]
pop edi
mov dword [0x638bbc], eax
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.005e0482
add esp, 0x18
ret
call dword [0x6292a4]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
cmp ecx, 4
jne 0x5b78f2
shr eax, 0xa
mov ecx, eax
sub ecx, 3
je 0x5b78c8
dec ecx
je 0x5b78eb
dec ecx
jne 0x5b78cd
mov eax, 1
movzx eax, ax
shl eax, 0xa
or eax, 4
mov dword [0x638bbc], eax
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.005e0482
add esp, 0x18
ret
mov eax, 2
jmp 0x5b78cd
mov eax, ecx
mov ecx, dword [esp + 0x18]
or eax, 0x800
pop esi
xor ecx, esp
mov dword [0x638bbc], eax
call fcn.005e0482
add esp, 0x18
ret
Function at 0x5b8520
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x18
mov eax, dword [0x631220]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
mov dword [esp + 0x10], eax
xor edi, edi
mov eax, dword [esp + 0x2c]
mov esi, 2
cmp eax, 0xa
ja case.0x5b854e.3
jmp dword [eax*4 + 0x5b8664]
mov edi, 0x4d66e4
jmp case.0x5b854e.3
mov edi, 0x4d671c
jmp 0x5b8584
mov edi, 0x4d671c
jmp case.0x5b854e.3
mov edi, 0x4d6754
jmp case.0x5b854e.3
mov edi, 0x4d6788
jmp 0x5b8584
mov edi, 0x4d67bc
jmp 0x5b8584
mov edi, 0x4d67f8
mov esi, 3
mov eax, dword [esp + 0x38]
mov edx, 0x20119
mov dword [esp + 0x1c], eax
mov ecx, 0x20019
xor eax, eax
cmp esi, 2
sete al
add eax, 0x80000001
cmp dword [0x63a6b0], 0
cmovne ecx, edx
lea edx, [esp + 0x18]
push edx
push ecx
push 0
push edi
push eax
mov dword [esp + 0x28], ecx
call dword [0x62906c]
mov ebx, eax
test ebx, ebx
jne 0x5b85f6
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
push ebx
push ebp
push dword [esp + 0x2c]
call dword [0x629068]
push dword [esp + 0x18]
mov ebx, eax
call dword [0x629064]
test ebx, ebx
je 0x5b8646
cmp esi, 3
jne 0x5b8646
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
push 0
push edi
push 0x80000002
call dword [0x62906c]
mov ebx, eax
test ebx, ebx
jne 0x5b8646
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
push ebx
push ebp
push dword [esp + 0x2c]
call dword [0x629068]
push dword [esp + 0x18]
mov ebx, eax
call dword [0x629064]
mov ecx, dword [esp + 0x24]
xor eax, eax
pop edi
pop esi
test ebx, ebx
pop ebp
cmove eax, dword [esp + 0x10]
pop ebx
xor ecx, esp
call fcn.005e0482
add esp, 0x18
ret
Function at 0x5b86f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x44
mov eax, dword [0x631220]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x54]
xor ebx, ebx
push edi
mov ebp, 0x19
xor edi, edi
nop
cmp edi, 6
jge 0x5b8794
push 0
push 0x24
push 0
push 0x3c
push dword [esi + 0x20]
call dword [0x62919c]
mov ebx, eax
test ebx, ebx
jne 0x5b8735
push ebp
call dword [0x629238]
add ebp, ebp
inc edi
test ebx, ebx
je 0x5b8710
push 0x40
lea eax, [esp + 0x14]
mov dword [esi + 0x24], 1
push 0
push eax
call fcn.005e0f30
add esp, 0xc
lea eax, [esp + 0x2c]
push 0x24
push eax
push 0x3c
push esi
call fcn.005b8940
test eax, eax
je 0x5b8826
lea ecx, [esp + 0x30]
xor edx, edx
lea edi, [esi + 0x74]
mov ebx, ecx
lea eax, [edi + 0x1f]
cmp ebx, eax
ja 0x5b87b0
lea eax, [esp + 0x4f]
cmp eax, edi
jb 0x5b87b0
mov al, byte [edi + edx]
lea ecx, [ecx + 1]
add byte [ecx - 1], al
inc edx
cmp edx, 0x20
jl 0x5b8783
jmp 0x5b87d9
test ebx, ebx
jne 0x5b873a
mov dword [0x62fcfc], 0x64
jmp 0x5b8844
movdqu xmm0, xmmword [esp + 0x30]
movdqu xmm1, xmmword [edi]
paddb xmm1, xmm0
movdqu xmm0, xmmword [esp + 0x40]
movdqu xmmword [esp + 0x30], xmm1
movdqu xmm1, xmmword [edi + 0x10]
paddb xmm1, xmm0
movdqu xmmword [esp + 0x40], xmm1
mov eax, dword [esp + 0x2e]
lea edx, [esp + 0x30]
add eax, dword [esp + 0x2c]
mov edi, 0x20
movzx eax, ax
lea ecx, [ecx]
xor byte [edx], al
lea edx, [edx + 1]
mov cx, ax
add eax, eax
shr cx, 0xf
add cx, ax
movzx eax, cx
mov cx, ax
add eax, eax
shr cx, 0xf
add cx, ax
movzx eax, cx
dec edi
jne 0x5b87f0
cmp dword [esp + 0x4c], edi
je 0x5b885b
mov dword [0x62fcfc], 0x65
cmp dword [esi + 0x24], 0
je 0x5b8844
push 0
push 0x24
push 0
push 0x3c
push dword [esi + 0x20]
call dword [0x6291a0]
mov dword [esi + 0x24], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.005e0482
add esp, 0x44
ret 4
movzx eax, word [esp + 0x32]
mov ecx, dword [esp + 0x50]
mov dword [esi + 0x40], eax
movzx eax, word [esp + 0x34]
mov dword [esi + 0x44], eax
mov al, byte [esp + 0x36]
mov byte [esi + 0x50], al
movzx eax, word [esp + 0x30]
pop edi
mov dword [esi + 4], eax
mov eax, 1
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005e0482
add esp, 0x44
ret 4

Function at 0x5b88a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x10]
push esi
push ebx
push dword [esp + 0x1c]
push edi
call fcn.005b8940
test eax, eax
je 0x5b8927
xor edx, edx
mov ecx, ebx
test esi, esi
je 0x5b88db
mov eax, edx
lea ecx, [ecx + 1]
and eax, 0x1f
inc edx
mov al, byte [eax + edi + 0x74]
add byte [ecx - 1], al
cmp edx, esi
jb 0x5b88c7
mov ax, word [edi + 0x32]
mov edx, ebx
add ax, word [edi + 0x30]
movzx eax, ax
test esi, esi
je 0x5b8916
mov edi, esi
mov edi, edi
xor byte [edx], al
lea edx, [edx + 1]
mov cx, ax
add eax, eax
shr cx, 0xf
add cx, ax
movzx eax, cx
mov cx, ax
add eax, eax
shr cx, 0xf
add cx, ax
movzx eax, cx
dec edi
jne 0x5b88f0
cmp dword [ebx + esi - 4], 0
je 0x5b892f
mov dword [0x62fcfc], 0x65
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
pop edi
pop esi
mov eax, 1
pop ebx
ret 0x10
Function at 0x5b8940
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [0x631220]
xor eax, esp
mov dword [esp + 4], eax
push ebx
mov ebx, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
push 0
push 0
push dword [esp + 0x20]
push dword [edi + 0x20]
call dword [0x629140]
test eax, eax
jne 0x5b898a
pop edi
mov dword [0x62fcfc], 0x65
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.005e0482
add esp, 8
ret 0x10
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 0xc]
push 0
push eax
push esi
push ebx
push dword [edi + 0x20]
call dword [0x62913c]
test eax, eax
je 0x5b89c4
cmp dword [esp + 0xc], esi
jne 0x5b89c4
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.005e0482
add esp, 8
ret 0x10
mov ecx, dword [esp + 0x10]
xor eax, eax
pop esi
pop edi
pop ebx
xor ecx, esp
mov dword [0x62fcfc], 0x62
call fcn.005e0482
add esp, 8
ret 0x10

Function at 0x5b89f0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
mov eax, dword [0x631220]
xor eax, esp
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x10]
push ebx
push esi
mov esi, dword [esp + 0x14]
lea ebx, [ecx + 0x14]
lea edx, [ecx + 0x18]
push edi
mov edi, 0x18
movzx eax, word [esi + 0x40]
mov word [ebx], ax
movzx eax, word [esi + 0x44]
mov word [ecx + 0x16], ax
movzx eax, word [esi + 0x54]
mov word [edx], ax
movzx eax, word [esi + 0x44]
add ax, word [esi + 0x40]
movzx eax, ax
xor byte [edx], al
lea edx, [edx + 1]
mov cx, ax
add eax, eax
shr cx, 0xf
add cx, ax
movzx eax, cx
mov cx, ax
add eax, eax
shr cx, 0xf
add cx, ax
movzx eax, cx
dec edi
jne 0x5b8a35
mov eax, dword [esi + 0x60]
push 0x1c
push ebx
add eax, 0x14
push eax
push esi
call fcn.005ba190
test eax, eax
jne 0x5b8a83
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.005e0482
add esp, 8
ret 8
cmp dword [esi + 0x6c], 0
je 0x5b8a90
mov byte [esp + 0xf], 0xfa
jmp 0x5b8a97
mov al, byte [esi + 0x50]
mov byte [esp + 0xf], al
push 1
lea eax, [esp + 0x13]
push eax
push dword [esi + 0x5c]
push esi
call fcn.005ba190
mov ecx, dword [esp + 0x10]
neg eax
pop edi
pop esi
sbb eax, eax
pop ebx
xor ecx, esp
neg eax
call fcn.005e0482
add esp, 8
ret 8
Function at 0x5b8b00
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x40
mov eax, dword [0x631220]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebp
mov ebp, dword [esp + 0x50]
lea eax, [esp + 7]
push esi
mov esi, dword [esp + 0x4c]
push 1
push eax
push dword [esi + 0x5c]
push esi
call fcn.005b8940
test eax, eax
je 0x5b8b3d
cmp byte [esp + 0xb], 0xfa
jbe 0x5b8b52
mov dword [0x62fcfc], 0x67
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.005e0482
add esp, 0x40
ret 0xc
push edi
push 0x38
xor edi, edi
lea eax, [esp + 0x14]
push edi
push eax
call fcn.005e0f30
add esp, 0xc
lea eax, [esp + 0x24]
push 0x1d
push eax
mov eax, dword [esi + 0x60]
add eax, 0x14
push eax
push esi
call fcn.005b8940
test eax, eax
jne 0x5b8b91
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.005e0482
add esp, 0x40
ret 0xc
mov eax, dword [esp + 0x26]
lea edx, [esp + 0x28]
add eax, dword [esp + 0x24]
push ebx
movzx eax, ax
mov ebx, 0x18
xor byte [edx], al
lea edx, [edx + 1]
mov cx, ax
add eax, eax
shr cx, 0xf
add cx, ax
movzx eax, cx
mov cx, ax
add eax, eax
shr cx, 0xf
add cx, ax
movzx eax, cx
dec ebx
jne 0x5b8ba6
cmp dword [esp + 0x40], edi
je 0x5b8bf3
pop ebx
pop edi
pop esi
mov dword [0x62fcfc], 0x65
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.005e0482
add esp, 0x40
ret 0xc
mov ax, word [esp + 0x2c]
cmp ax, word [esi + 0x54]
je 0x5b8c1f
pop ebx
pop edi
pop esi
mov dword [0x62fcfc], 0x67
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.005e0482
add esp, 0x40
ret 0xc
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x5b8c2e
push eax
call fcn.005bc820
mov edi, eax
test ebp, ebp
je 0x5b8c91
test edi, edi
je 0x5b8c91
cmp dword [edi + 0x10], 1
jne 0x5b8c91
cmp byte [esp + 0x13], 0xfa
jae 0x5b8c91
mov al, byte [esp + 0x44]
test al, al
jne 0x5b8c70
test byte [edi + 0x28], 0x80
jne 0x5b8c70
push dword [edi + 0x34]
mov eax, dword [esi + 0x64]
push dword [edi + 0x2c]
add eax, dword [esi + 0x60]
push eax
push esi
call fcn.005b8940
test eax, eax
je 0x5b8cf4
mov al, byte [esp + 0x44]
movzx eax, al
xor ecx, ecx
test eax, eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], 2
sete cl
mov dword [edi + 0x18], ecx
mov dword [esi + 0x6c], 0
mov dword [ebp], edi
mov edx, dword [esp + 0x58]
test edx, edx
je 0x5b8d12
mov edi, dword [esi + 0x3c]
xor ecx, ecx
mov ebx, dword [esi + 0x44]
cmp edi, ebx
jbe 0x5b8cb9
mov eax, dword [esi + 0x40]
cmp eax, dword [esi + 0x38]
jbe 0x5b8cbd
mov ecx, ebx
sub ecx, edi
add ecx, 0xa8c0
jmp 0x5b8cbd
mov ecx, ebx
sub ecx, edi
add ecx, ecx
jns 0x5b8cc5
xor ecx, ecx
jmp 0x5b8cd2
mov eax, 0xffff
cmp ecx, 0xffff
jg 0x5b8cd5
movzx eax, cx
cmp eax, edx
jae 0x5b8d0b
sub edx, eax
mov eax, edx
xor edx, edx
div dword [esi + 0x34]
mov dword [esi + 0x14], eax
cmp eax, 1
jbe 0x5b8d12
mov dword [0x62fcfc], 0x63
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.005e0482
add esp, 0x40
ret 0xc
mov dword [esi + 0x14], 0
mov ecx, dword [esp + 0x4c]
mov eax, 1
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.005e0482
add esp, 0x40
ret 0xc
Function at 0x5ba190
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [0x631220]
xor eax, esp
mov dword [esp + 4], eax
push ebx
mov ebx, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
push 0
push 0
push dword [esp + 0x20]
push dword [edi + 0x20]
call dword [0x629140]
test eax, eax
jne 0x5ba1da
pop edi
mov dword [0x62fcfc], 0x65
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.005e0482
add esp, 8
ret 0x10
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 0xc]
push 0
push eax
push esi
push ebx
push dword [edi + 0x20]
call dword [0x6290c0]
test eax, eax
je 0x5ba214
cmp dword [esp + 0xc], esi
jne 0x5ba214
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.005e0482
add esp, 8
ret 0x10
mov ecx, dword [esp + 0x10]
xor eax, eax
pop esi
pop edi
pop ebx
xor ecx, esp
mov dword [0x62fcfc], 0x61
call fcn.005e0482
add esp, 8
ret 0x10

Function at 0x5ba240
Capabilities:
Encode data using xor
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x631220]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push esi
push 0x100
xor ebx, ebx
lea eax, [esp + 0x10]
push ebx
push eax
call fcn.005e0f30
add esp, 0xc
lea eax, [esp + 0xc]
push 0xff
push eax
push 0x4d4454
call dword [0x6290dc]
mov esi, eax
test esi, esi
je 0x5ba3bb
cmp esi, 0x20
jae 0x5ba3bb
mov ecx, 0x4d4460
lea eax, [esp + 0xc]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x5ba2c0
test dl, dl
je 0x5ba2bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x5ba2c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x5ba2a0
xor eax, eax
jmp 0x5ba2c5
sbb eax, eax
or eax, 1
test eax, eax
je 0x5ba3bb
mov ecx, 0x4d4468
lea eax, [esp + 0xc]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x5ba2f6
test dl, dl
je 0x5ba2f2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x5ba2f6
add eax, 2
add ecx, 2
test dl, dl
jne 0x5ba2d6
xor eax, eax
jmp 0x5ba2fb
sbb eax, eax
or eax, 1
test eax, eax
je 0x5ba3bb
push 8
lea eax, [esp + 0x10]
push 0x4d4478
push eax
call fcn.005e25e0
add esp, 0xc
test eax, eax
jne 0x5ba378
lea eax, [esp + 8]
mov dword [esp + 8], ebx
push eax
lea eax, [esp + 0x10]
push 0x4d4484
push eax
call fcn.005e5702
add esp, 0xc
cmp eax, 1
jne 0x5ba357
mov eax, dword [esp + 8]
inc eax
and eax, 0x800000ff
jns 0x5ba34e
dec eax
or eax, 0xffffff00
inc eax
movzx ebx, byte [eax + 0x62fd60]
jmp 0x5ba396
xor edx, edx
test esi, esi
je 0x5ba39d
lea ecx, [ecx]
movsx ecx, byte [esp + edx + 0xc]
inc edx
movzx eax, bx
xor ecx, eax
movzx ebx, byte [ecx + 0x62fd60]
cmp edx, esi
jb 0x5ba360
jmp 0x5ba396
xor edx, edx
test esi, esi
je 0x5ba39d
mov edi, edi
movsx ecx, byte [esp + edx + 0xc]
inc edx
movzx eax, bx
xor ecx, eax
movzx ebx, byte [ecx + 0x62fd60]
cmp edx, esi
jb 0x5ba380
xor eax, eax
cmp ax, bx
jne 0x5ba3a2
mov ebx, 0xff
pop esi
mov al, bl
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.005e0482
add esp, 0x108
ret
mov ecx, dword [esp + 0x10c]
xor al, al
pop esi
pop ebx
xor ecx, esp
call fcn.005e0482
add esp, 0x108
ret
Function at 0x5ba3e0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x220
mov eax, dword [0x631220]
xor eax, esp
mov dword [esp + 0x21c], eax
push esi
mov esi, dword [esp + 0x228]
lea eax, [esp + 0x120]
push 0x100
push eax
call fcn.00600454
cmp eax, 0xffffffff
jne 0x5ba42d
xor al, al
pop esi
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.005e0482
add esp, 0x220
ret 4
lea eax, [esp + 0x120]
push eax
call fcn.006004c6
test eax, eax
je 0x5ba413
mov eax, dword [eax + 0xc]
push ebx
push 1
mov eax, dword [eax]
mov ebx, dword [eax]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0x10c
push eax
call fcn.005bdc80
test eax, eax
jne 0x5ba47c
mov edx, dword [esp + 0x18]
test edx, edx
jle 0x5ba47c
lea ecx, [esp + 0x1c]
nop
cmp dword [ecx], ebx
je 0x5ba483
inc eax
add ecx, 0x18
cmp eax, edx
jl 0x5ba470
xor al, al
jmp 0x5ba547
lea eax, [eax + eax*2]
mov edx, dword [esp + eax*8 + 0x24]
test edx, edx
je 0x5ba47c
mov ecx, dword [esi + 4]
mov eax, ebx
shr eax, 0x18
and ecx, edx
mov byte [esp + 0x14], al
not edx
mov eax, ebx
mov byte [esp + 0xf], cl
shr eax, 0x10
mov byte [esp + 0x15], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x16], al
movzx eax, byte [esi + 7]
mov byte [esp + 8], al
movzx eax, byte [esi + 6]
mov byte [esp + 9], al
movzx eax, byte [esi + 5]
mov byte [esp + 0xa], al
movzx eax, byte [esi + 4]
mov byte [esp + 0xb], al
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0xd], al
mov eax, ecx
mov ecx, dword [esp + 8]
shr eax, 8
mov byte [esp + 0xe], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x10], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x11], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x12], al
mov byte [esp + 0x13], dl
mov eax, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
or eax, edi
mov byte [esp + 0x1b], bl
cmp ecx, edi
jbe 0x5ba537
cmp ecx, eax
jae 0x5ba535
mov edx, dword [esp + 0x18]
cmp edx, edi
jbe 0x5ba535
cmp edx, eax
jb 0x5ba53d
cmp ecx, edi
je 0x5ba560
cmp ecx, eax
je 0x5ba560
mov dword [esi + 8], 1
mov al, 1
pop edi
mov ecx, dword [esp + 0x224]
pop ebx
pop esi
xor ecx, esp
call fcn.005e0482
add esp, 0x220
ret 4
mov dword [esi + 8], 0
xor al, al
jmp 0x5ba546