joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aedc0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4aef1f
sub esp, 0x5c
lea edi, [esp + 0x7c]
xor eax, eax
call fcn.00465377
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x4aedfa
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x60]
jmp 0x4aee23
lea eax, [0x4ec9a0]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x200
call fcn.0044cc90
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov edx, 0x200
mov dword [esp + 0x24], ecx
lea edi, [esp + 0x38]
mov ebx, eax
xor eax, eax
call fcn.00465377
mov dword [esp + 0x38], ebx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x6c]
mov dword [esp], ecx
call fcn.004ad5f0
movzx ecx, word [esp + 4]
movzx edx, word [esp + 6]
mov word [esp + 0x46], cx
mov word [esp + 0x48], dx
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov ecx, dword [esp + 0x3c]
lea edx, [ecx + 0xc]
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x38]
cmp ebx, edx
jae 0x4aeec9
mov dword [esp + 0x24], ecx
mov dword [esp], ebp
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0xc
lea eax, [0x4ec9a0]
mov dword [esp + 0x10], eax
call fcn.0044cd30
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x20], edx
lea eax, [ebp + ecx]
mov dword [esp], eax
lea eax, [esp + 0x28]
mov dword [esp + 4], eax
mov dword [esp + 8], 0xc
call fcn.00465a70
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x40], eax
mov byte [esp + 0x44], 1
lea edi, [esp + 0x7c]
lea esi, [esp + 0x38]
call fcn.00465836
add esp, 0x5c
ret
call fcn.00463e70
jmp fcn.004aedc0
Function at 0x4c3320
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4c3493
sub esp, 0x48
mov eax, dword [esp + 0x78]
cmp eax, 4
jne 0x4c33b9
mov ecx, dword [esp + 0x74]
cmp dword [ecx], 0x6c616964
je 0x4c3358
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x68]
jmp 0x4c33c5
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 0x68]
mov dword [esp], edx
call ecx
movzx eax, byte [esp + 4]
test al, al
jne 0x4c3383
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x68]
jmp 0x4c33c5
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 0x24]
mov ecx, dword [esp + 0x68]
mov dword [esp], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x58]
mov dword [esp + 8], edx
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, eax
mov ebx, ecx
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
jmp 0x4c33c5
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], edx
mov ebp, dword [esp + 0x54]
mov dword [esp], ebp
mov esi, dword [esp + 0x58]
mov dword [esp + 4], esi
mov edi, dword [esp + 0x5c]
mov dword [esp + 8], edi
mov edi, dword [esp + 0x60]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
call fcn.004c3190
mov eax, dword [esp + 0x20]
movzx ecx, byte [esp + 0x24]
mov edx, dword [esp + 0x4c]
mov dword [esp], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], cl
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x30], eax
call fcn.004c9ed0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
add esp, 0x48
ret
call fcn.00463e70
jmp fcn.004c3320
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x14e35388
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data_1
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x492009fd
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
mov ecx, 0x8951399
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
mov ecx, 0x7d181398
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130

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

Disassembly:
pushal
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, reloc.untfs.dll_Recover
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x4047e1
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x14]
add edx, 0xffffc15f
push edi
mov edi, dword [esp + 0x14]
lea ecx, [esi + 0x745]
xor esi, 0x76ba
lea eax, [edx + 0x3a86]
cmp esi, eax
je 0x40495c
mov eax, dword [esp + 0x1c]
xor eax, 0xe9b
cmp edx, eax
je 0x404950
push ebx
push ebp
xor ebp, ebp
mov eax, dword [edi + 0xb4]
push 0x37
mov ecx, dword [eax + ebp]
add ebp, 4
mov eax, dword [edi + 0x90]
imul eax, dword [edi + 0x70]
mov dword [edi + 0x70], eax
mov ebx, dword [edi + 0x80]
mov eax, dword [edi + 0x108]
sub eax, dword [0x52aa88]
xor eax, 0xfffdbbad
imul ebx, ecx
mov ecx, dword [0x517e7c]
add dword [ecx + 0x7c], eax
mov edx, ebx
mov eax, dword [edi + 0x70]
dec eax
shr edx, 8
add dword [edi + 0x44], eax
mov eax, dword [edi + 0x124]
sub eax, 0x1388de
imul eax, dword [edi + 0x120]
mov dword [edi + 0x120], eax
mov eax, dword [0x517e7c]
mov ecx, dword [eax + 0xb8]
mov eax, dword [edi + 0x84]
mov byte [ecx + eax], dl
inc dword [edi + 0x84]
mov ecx, dword [edi + 0xdc]
xor ecx, dword [edi + 0x10c]
pop eax
sub eax, ecx
add dword [0x52aa30], eax
mov eax, dword [0x52a9d4]
dec eax
add eax, dword [edi + 0x48]
imul eax, dword [edi + 0xdc]
push 0x1d
mov dword [edi + 0xdc], eax
mov eax, dword [0x517e7c]
mov ecx, dword [eax + 0xb8]
mov eax, dword [edi + 0x84]
mov byte [ecx + eax], bl
inc dword [edi + 0x84]
mov ecx, dword [0x517e7c]
mov eax, dword [ecx + 0x114]
xor eax, 0x1d
sub dword [ecx + 0x118], eax
pop eax
sub eax, dword [edi + 0x114]
sub eax, dword [edi + 0x20]
add dword [edi + 0xc4], eax
mov eax, dword [edi + 0x70]
sub eax, dword [0x52aa88]
add eax, 0xb2d11
add dword [edi + 0xe0], eax
mov ecx, dword [0x517e7c]
mov eax, dword [ecx + 0x120]
sub eax, dword [ecx + 0xc]
xor eax, 0xfff048fb
imul eax, dword [0x52aa18]
mov dword [0x52aa18], eax
cmp ebp, 0x66750
jl 0x404824
pop ebp
pop ebx
jmp 0x404962
xor ecx, 0x3ded
or dword [0x52aa80], ecx
mov ecx, dword [0x517e7c]
mov eax, dword [ecx + 0x110]
xor eax, 0x32385801
mov dword [edi + 0x80], eax
lea eax, [esi - 0xafa]
pop edi
pop esi
ret
Function at 0x413d20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
add eax, 0xffffff37
push esi
push edi
mov edi, dword [ebp + 0x14]
mov edx, ecx
xor eax, 0x7a2c
xor ecx, 0x531
xor edx, 0x3a42
lea esi, [edi - 0x52]
cmp ecx, eax
je 0x413dbc
lea ecx, [esi + 0x668]
lea eax, [edi - 0x58e]
cmp eax, ecx
jge 0x413d6c
mov eax, dword [ebp + 8]
mov dword [eax + 0xb4], 0x51b4e0
jmp 0x413dbc
mov ecx, dword [0x52aa2c]
lea eax, [edi - 0x16]
and ecx, esi
or ecx, eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffcf2
cmp eax, ecx
jbe 0x413dbc
mov eax, dword [0x517e7c]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 0x28]
sub eax, edx
sub eax, 0x3b66
cmp dword [ecx + 0xf8], eax
je 0x413dbc
sub edx, dword [ecx + 0xd8]
mov ecx, dword [ecx + 0x6c]
and ecx, 0x3d35
push edx
add ecx, 0x40b1
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xor esi, 0x7fe
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x1834058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x18341a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x183407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x183406a
add dl, dl
jne 0x1834089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x18340dc
xor eax, eax
add dl, dl
jne 0x1834096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x183417d
add dl, dl
jne 0x18340a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18340b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18340bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18340c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x18340d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1834075
mov eax, 1
add dl, dl
jne 0x18340ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18340f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x18340e1
sub eax, ebx
mov ebx, 1
jne 0x1834128
mov ecx, 1
add dl, dl
jne 0x183410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1834119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1834105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1834075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x183413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x183414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1834136
cmp eax, 0x7d00
jae 0x183416d
cmp eax, 0x500
jb 0x1834168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1834075
cmp eax, 0x7f
ja 0x1834170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1834075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x183419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1834075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x41c500
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x427850], 0
jne 0x41c581
cmp dword [0x427870], 0
jne 0x41c530
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x427870], eax
test eax, eax
jne 0x41c530
push str.GetEnvironmentStrings_failed
call fcn.0041bd1c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x427870]
jmp 0x41c544
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c53c
lea edi, [ebp + 1]
push edi
call fcn.004161a8
pop ecx
mov ebx, eax
mov dword [0x427854], ebx
test ebx, ebx
jne 0x41c56e
xor eax, eax
jmp 0x41c644
push edi
mov edx, dword [0x427870]
push edx
push ebx
call fcn.00416754
add esp, 0xc
jmp 0x41c5a1
xor esi, esi
mov ebx, dword [0x427850]
jmp 0x41c59b
push eax
call fcn.004168a4
pop ecx
test eax, eax
jne 0x41c597
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c58b
lea ebx, [esi + 4]
push 4
mov dword [0x427858], ebx
inc ebx
push ebx
call fcn.00415c80
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x41c5c4
xor eax, eax
jmp 0x41c644
cmp dword [0x427850], 0
jne 0x41c5f5
xor esi, esi
mov ebx, dword [0x427854]
mov eax, dword [esp]
mov ebp, eax
jmp 0x41c5e6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c5dc
jmp 0x41c626
xor esi, esi
mov ebx, dword [0x427850]
mov eax, dword [esp]
mov edi, eax
jmp 0x41c620
push eax
call fcn.004168a4
pop ecx
test eax, eax
je 0x41c615
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x41c619
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c604
mov eax, dword [0x427850]
test eax, eax
je 0x41c636
push eax
call fcn.004161b8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x427850], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x589f0c5
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp + 0x14]
jmp fcn.050df19c
Function at 0x40270d
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x446808]
call fcn.00404b1a
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x40280d
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x402763
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x40275b
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x4027a3
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x4027e5
push 0x22
pop edx
cmp cx, dx
je 0x402795
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x402785
xor ecx, ecx
cmp word [eax], cx
je 0x4027e5
mov ecx, eax
add eax, 2
jmp 0x4027e7
test dx, dx
je 0x4027ed
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x402795
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x4027db
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x4027e5
cmp cx, dx
je 0x4027d8
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4027c8
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x4027ad
jmp 0x402795
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x4027ef
xor edx, edx
cmp dword [ebp], ebx
jne 0x4027f8
test edi, edi
jne 0x402815
test edx, edx
je 0x4027fd
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x402751
test edi, edi
jne 0x402826
mov eax, ebx
jmp 0x40282a
test esi, esi
je 0x402826
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x40282a
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x4030d3
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ecx
push ebp
push esi
mov esi, dword [esp + 0x1c]
xor ebp, ebp
push edi
mov edi, ebp
test esi, esi
je 0x4031d3
push dword [esp + 0x18]
push dword [0x446828]
call fcn.00404b83
test eax, eax
je 0x4031d3
push ebx
push esi
call fcn.004047b2
push ebp
push pe_nt_image_headers32
push 3
push ebp
push 1
push closesocket
push esi
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
test ebx, ebx
je 0x4031d2
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
lea eax, [ebp - 1]
cmp eax, 0x5f5e0fe
ja 0x4031cb
push ebp
push edi
push dword [0x44642c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
je 0x4031cb
push edi
lea eax, [esp + 0x18]
push eax
push ebp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [esp + 0x28]
xor eax, eax
test edi, edi
je 0x403179
cmp word [edi], ax
jne 0x4031a9
mov edi, 0x43bcac
mov esi, eax
push dword [esp + 0x24]
push dword [esi*8 + 0x445184]
call sub.MSVCRT.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
je 0x40319e
inc esi
cmp esi, 0x5d
jb 0x403180
jmp 0x4031a5
mov edi, dword [esi*8 + 0x445180]
mov esi, dword [esp + 0x10]
push edi
push ebp
push esi
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.00403ac8
mov edi, eax
xor eax, eax
push esi
push eax
push dword [0x44642c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
pop ecx
ret 0x10
Function at 0x403727
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push dword [ebp + 8]
xor ebx, ebx
push dword [0x446828]
call fcn.00404b83
mov edi, eax
test edi, edi
je 0x40385c
cmp dword [ebp + 0xc], ebx
je 0x40385c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x2c], 0xa
cmp dword [edi + 0x18], ebx
je 0x403771
push dword [edi + 0x18]
push ebx
push dword [0x44642c]
call esi
cmp dword [edi + 0x1c], ebx
je 0x403782
push dword [edi + 0x1c]
push ebx
push dword [0x44642c]
call esi
cmp dword [edi + 0x20], ebx
je 0x403793
push dword [edi + 0x20]
push ebx
push dword [0x44642c]
call esi
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x24], eax
cmp dword [ebp + 0x18], ebx
je 0x4037bd
push dword [ebp + 0x18]
call fcn.0043ac20
mov esi, eax
push esi
call fcn.00403a7a
push esi
mov dword [edi + 0x18], eax
call fcn.0043ac10
cmp dword [ebp + 0x1c], ebx
je 0x4037db
push dword [ebp + 0x1c]
call fcn.0043ac20
mov esi, eax
push esi
call fcn.00403a7a
push esi
mov dword [edi + 0x1c], eax
call fcn.0043ac10
push dword [ebp + 0xc]
call fcn.0043ac20
mov esi, eax
push esi
call sub.MSVCRT.dll_strlen
pop ecx
sub eax, 0xffffff80
push eax
push ebx
push dword [0x44642c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test byte [ebp + 0x14], 4
push dword [ebp + 0x10]
mov dword [edi + 0x20], eax
push esi
je 0x403811
push str.smtps:___s:_d
jmp 0x403816
push str.smtp:___s:_d
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0x10
push esi
call fcn.0043ac10
test byte [ebp + 0x14], 1
pop esi
je 0x403853
lea eax, [ebp + 0x14]
push eax
push ebx
push edi
push 0x403a6b
push 0x20000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40385c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
jmp 0x40385c
push edi
call fcn.004038be
pop ecx
mov ebx, eax
pop edi
mov eax, ebx
pop ebx
pop ebp
ret 0x18

Function at 0x40450b
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x40445a
push 0x10
push 0x2c
call fcn.00404c2c
push 0
push 0
push 8
mov dword [0x44645c], eax
call fcn.00404b21
cmp word [0x446454], 0
mov dword [0x44683c], eax
jne 0x4045f0
push edi
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x404563
mov word [0x446454], di
jmp 0x40456b
xor eax, eax
mov word [0x446454], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x446470], eax
test eax, eax
je 0x4045ef
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43bfc4
push eax
call esi
push 0x43bfd0
push dword [0x446470]
mov dword [0x446460], eax
call esi
push str.getnameinfo
push dword [0x446470]
mov dword [0x446464], eax
call esi
push str.WSAStringToAddressA
push dword [0x446470]
mov dword [0x446468], eax
call esi
cmp dword [0x446460], 0
mov dword [0x44646c], eax
pop esi
je 0x4045ef
cmp dword [0x446464], 0
je 0x4045ef
cmp dword [0x446468], 0
je 0x4045ef
test eax, eax
je 0x4045ef
mov dword [0x446458], edi
pop edi
add esp, 0x190
ret
Function at 0x404766
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x40478f
test byte [esp + 8], 2
je 0x404783
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x404791
xor eax, eax
ret 8
Function at 0x40e430
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ebx, 0x1505
add ecx, esi
mov eax, ecx
push edi
xor edi, edi
sub eax, esi
cmp ecx, esi
sbb ebp, ebp
not ebp
and ebp, eax
jbe 0x40e474
mov al, byte [esi]
push eax
call fcn.0041a400
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, ebp
jb 0x40e453
pop edi
pop esi
pop ebp
movzx eax, bl
pop ebx
ret