joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a95d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4c01c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00415ad0
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00415ad0
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x41a9d4
cmp word [ecx], dx
je 0x41a9d4
mov eax, dword [0x4ba11c]
push edi
dec eax
push eax
push 0x4ba008
call fcn.0041a8fc
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x41aa47
cmp word [eax], dx
je 0x41aa47
mov eax, dword [edi]
test eax, eax
je 0x41a9f8
cmp word [eax], dx
je 0x41a9f8
lea eax, [ebp - 0x10]
push eax
call fcn.0041a2df
jmp 0x41aa01
lea eax, [ebp - 0x10]
push eax
call fcn.0041a37a
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x41aa71
mov eax, dword [0x4ba004]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4b9cf8
call fcn.0041a8fc
add esp, 0xc
test al, al
je 0x41aa71
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x41aa3c
cmp word [eax], di
je 0x41aa3c
lea eax, [ebp - 0x10]
push eax
call fcn.0041a2df
pop ecx
jmp 0x41aa73
lea eax, [ebp - 0x10]
push eax
call fcn.0041a37a
jmp 0x41aa39
mov eax, dword [edi]
test eax, eax
je 0x41aa5e
cmp word [eax], dx
je 0x41aa5e
lea eax, [ebp - 0x10]
push eax
call fcn.0041a294
pop ecx
jmp 0x41aa71
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x41ab3c
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0041a781
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41ab3c
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x41ab3c
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41ab3c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41aac9
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00417bbb
test ebx, ebx
je 0x41ab37
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00417bbb
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41ab3c
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41ab3c
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0041faaf
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41ab3e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409b2f
leave
ret
Function at 0x41c43a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408f90
mov eax, dword [0x4c01c0]
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.0041b081
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41c47c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41c5d8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421e50
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 + 0x4c19e0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041d437
mov ecx, dword [esi*4 + 0x4c19e0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x41c5d1
cmp eax, dword [ecx + edi + 0x24]
jne 0x41c5d1
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c5d1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041d437
add esp, 0x14
test edx, edx
jl 0x41c5d1
jg 0x41c547
test eax, eax
jb 0x41c5d1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41c5d1
jl 0x41c561
cmp dword [ebp - 0x1008], eax
ja 0x41c5d1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41c57f
test ebx, ebx
je 0x41c5b8
cmp ecx, edi
jae 0x41c5b8
mov al, byte [ecx]
cmp al, 0xd
jne 0x41c599
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41c5a5
cmp byte [ecx + 1], 0xa
jne 0x41c5a5
inc ecx
jmp 0x41c5a5
movzx eax, al
movsx eax, byte [eax + 0x4c0990]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41c57f
cmp edx, ebx
jne 0x41c57f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41c5d6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409b2f
leave
ret
Function at 0x41c8cf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4c19e0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c90f
cmp byte [ebx], 0xa
jne 0x41c90f
or byte [edi + eax + 0x28], 4
jmp 0x41c914
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x41ca13
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41c9f6
inc eax
cmp dl, 0xd
je 0x41c940
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41c966
cmp eax, ecx
jae 0x41c974
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x41c928
jmp 0x41ca13
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c9f1
cmp dword [ebp - 0x10], 0
je 0x41c9f1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4c19e0]
test byte [eax + edi + 0x28], 0x48
je 0x41c9cb
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41c9b6
mov byte [esi], dl
jmp 0x41c9c7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4c19e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41ca13
cmp byte [ebp - 1], 0xa
jne 0x41c9da
cmp esi, ebx
jne 0x41c9da
mov byte [esi], 0xa
jmp 0x41ca12
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041d455
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41ca13
mov byte [esi], 0xd
jmp 0x41ca12
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4c19e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ca10
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ca13
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41ca1c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4c19e0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ca62
cmp word [ebx], dx
jne 0x41ca62
or byte [eax + edi + 0x28], 4
jmp 0x41ca67
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x41cbca
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x41cbaa
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41caa8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41cade
cmp eax, edx
jae 0x41caec
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x41ca83
jmp 0x41cbca
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41cba5
cmp dword [ebp - 0x18], 0
je 0x41cba5
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4c19e0]
test byte [eax + edi + 0x28], 0x48
je 0x41cb7b
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x41cb3f
mov word [esi], cx
jmp 0x41cb76
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4c19e0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4c19e0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4c19e0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41cbca
pop eax
cmp word [ebp - 4], ax
jne 0x41cb8b
cmp esi, ebx
jne 0x41cb8b
mov word [esi], ax
jmp 0x41cbc7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041d455
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41cbca
push 0xd
pop eax
jmp 0x41cb86
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4c19e0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41cbc4
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41cbca
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10001b77
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x1000e018
call fcn.1000dd50
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x428], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x10001bf4
push 2
push esi
push ebx
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x10001bf4
call fcn.1000127b
mov esi, eax
jmp 0x10001cfa
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x10001c17
call fcn.1000127b
jmp 0x10001ced
push ebx
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x10001c0d
push ebx
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x10001c4a
mov esi, 0x8007000e
jmp 0x10001cef
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
cmp edx, esi
ja 0x10001d28
jb 0x10001c65
cmp eax, 0xffffffff
ja 0x10001d28
cmp eax, 0x400
jbe 0x10001c7a
push eax
lea ecx, [ebp - 0x418]
call fcn.10004fc6
jmp 0x10001c9c
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x10001c9c
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x10001c40
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x41c]
push esi
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x10001c0d
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x430]
push dword [ebp - 0x418]
call fcn.10004fc6
mov esi, eax
test edi, edi
je 0x10001cfa
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10001d13
lea ecx, [ebp - 0x418]
call fcn.10004013
lea ecx, [ebp - 0x428]
call fcn.10003e34
mov eax, esi
call fcn.1000dca1
ret 0x10
push 0x80070216
call fcn.10004fc6
int3
Function at 0x10004775
Capabilities:
Parse url

Disassembly:
push 0x4c
mov eax, 0x1000e30d
call fcn.1000dcae
mov dword [ebp - 0x1c], ecx
push 0x3c
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x58]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x58], esi
test ebx, ebx
jne 0x100047a6
mov dword [ebp - 0x10], edi
jmp 0x100047af
push ebx
lea ecx, [ebp - 0x10]
call fcn.10004fc6
push 5
mov dword [ebp - 4], edi
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push ebx
call edi
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x10004908
push 6
push ebx
mov byte [ebp - 4], 1
call edi
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
je 0x10004908
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.10004abb
mov ebx, eax
test ebx, ebx
js 0x100048ed
lea ecx, [ebp - 0x18]
call fcn.10004abb
mov ebx, eax
test ebx, ebx
js 0x100048ed
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x40], 0
je 0x100048e8
push dword [ebp - 0x10]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
call ebx
cmp eax, 0x8000
ja 0x100048e8
push dword [ebp - 0x10]
call ebx
cmp eax, 6
jb 0x100048e8
lea ecx, [ebp - 0x10]
call fcn.10004abb
mov ebx, eax
test ebx, ebx
js 0x100048ed
push str.http:
lea ecx, [ebp - 0x14]
call fcn.10004fc6
test al, al
je 0x1000486d
push str.https:
lea ecx, [ebp - 0x18]
call fcn.10004fc6
test al, al
jne 0x100048e8
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x18], eax
movzx eax, word [eax]
test ax, ax
je 0x100048e8
mov ecx, eax
cmp cx, 0xd
je 0x100048e8
cmp cx, 0xa
je 0x100048e8
mov dword [ebp - 0x1c], 0x2f
lea eax, [edx + 1]
cmp word [ebp - 0x1c], cx
cmovne eax, edx
mov edx, eax
mov eax, dword [ebp - 0x18]
add eax, 2
mov dword [ebp - 0x18], eax
movzx eax, word [eax]
mov ecx, eax
test ax, ax
jne 0x1000487f
cmp edx, 3
jb 0x100048e8
push dword [ebp - 0x10]
xor eax, eax
inc eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x50], eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
lea ecx, [ebp - 0x58]
push ecx
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x100048ed
mov ebx, 0x80070057
push edi
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
push esi
call edi
push dword [ebp - 0x10]
call edi
mov eax, ebx
call fcn.1000dc7f
ret 4
push 0x8007000e
call fcn.10004fc6
int3
Function at 0x10004fc6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x10004fd5
pop dword [ebp - 0x24]
mov eax, 0x47ca78f9
add eax, 0xc835d6dc
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x3af43
push 0
mov eax, 0x24b5b617
add eax, 0xeb4b3abd
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0xdc97b87a
add ecx, 0x23689784
xor ebx, ebx
add ebx, eax
mov edx, 0x1001c400
add edx, dword [ebp - 0x24]
mov edi, 0x966855b
sub edi, 0xa8a5f5dd
add dword [ebp - 0x18], 0xc6b2d900
mov esi, dword [edx]
xor dword [ebp - 0x1c], 0xf531e0e
xor esi, edi
xor dword [ebp - 0x14], esi
mov dword [ebx], esi
mov dword [ebp - 0x10], 0xdfc51461
add ebx, 0x4ca3a9fe
sub ebx, 0x4ca3a9fa
add edx, 4
loop 0x10005030
add eax, 0x57f1bb05
add eax, 0xa80f77c6
xor ebx, ebx
add ebx, eax
add eax, 0x3a2ec1a3
add eax, 0xc5d13e62
mov ecx, 0x66cb5d79
add ecx, 0xa934a287
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x40288e
pop dword [ebp - 0x34]
mov eax, 0x40288e
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x8fc5790f
sub dword [ebp - 0x44], 0x417333c4
mov dword [ebp - 0x40], 0x16fe7d14
sub dword [ebp - 0x40], 0xe4cb30cf
mov dword [ebp - 0x3c], 0xb9f6f9c2
add dword [ebp - 0x3c], 0x92554a6c
mov dword [ebp - 0x38], 0xeb44267
sub dword [ebp - 0x38], 0xeb44267
lea eax, [ebp - 0x44]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x3e0885c6
add dword [ebp - 0x44], 0x3669e390
mov dword [ebp - 0x40], 0x43c960dc
sub dword [ebp - 0x40], 0x25cff67
mov dword [ebp - 0x3c], 0xb92f30f0
sub dword [ebp - 0x3c], 0x55bfc484
mov dword [ebp - 0x38], 0x55f0d768
add dword [ebp - 0x38], 0xaa0f2898
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0xf0747b95
sub eax, 0xf0340aed
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x36d4e
push 0
call eax
mov ecx, 0xff6074c9
sub ecx, 0xff602bd8
xor ebx, ebx
add ebx, eax
mov edx, 0xe593d2c9
sub edx, 0xe552d2c9
add edx, dword [ebp - 0x34]
mov edi, 0xfbc4c6ce
sub edi, 0x6190fa49
add dword [ebp - 0xc], ebx
mov esi, dword [edx]
xor esi, edi
mov dword [ebp - 4], 0xef7d42d0
mov dword [ebx], esi
sub dword [ebp - 0x10], ecx
add ebx, 4
add edx, 0x9a00394
add edx, 0xf65ffc70
loop 0x4029a8
add eax, 0x11697
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x44e378]
test eax, eax
jne 0x401023
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x44e378], eax
test eax, eax
jne 0x401023
pop ebp
ret 8
cmp dword [0x44e37c], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x401049
push 0x426eb4
push eax
call esi
mov dword [0x44e37c], eax
test eax, eax
je 0x4010c0
mov eax, dword [0x44e378]
cmp dword [0x44e380], 0
jne 0x401068
push 0x426ec0
push eax
call esi
mov dword [0x44e380], eax
test eax, eax
je 0x4010c0
mov eax, dword [0x44e378]
cmp dword [0x44e384], 0
jne 0x401087
push 0x426ecc
push eax
call esi
mov dword [0x44e384], eax
test eax, eax
je 0x4010c0
mov eax, dword [0x44e378]
cmp dword [0x44e388], 0
jne 0x4010a6
push 0x426ed8
push eax
call esi
mov dword [0x44e388], eax
test eax, eax
je 0x4010c0
mov eax, dword [0x44e378]
cmp dword [0x44e38c], 0
jne 0x4010c7
push 0x426ee8
push eax
call esi
mov dword [0x44e38c], eax
test eax, eax
jne 0x4010c7
xor eax, eax
pop esi
pop ebp
ret 8
mov eax, dword [0x44e37c]
test eax, eax
je 0x4010d9
mov ecx, dword [ebp + 0xc]
push ecx
call eax
add esp, 4
xor ecx, ecx
call fcn.004010f0
mov eax, 1
pop esi
pop ebp
ret 8
Function at 0x401240
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push eax
push 0
push 0
push 0
push connect
push 0
push connect
push 0xcf0000
push 0x42ddd8
push 0x42dd10
push 0
mov dword [0x42dea0], eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
jne 0x40127d
mov esp, ebp
pop ebp
ret
push 0x426ef4
push 0x40
push 0x42c304
call fcn.004125f5
push 0x426f10
push 0x40
push 0x42c804
call fcn.004125f5
push 0x426f1c
push 0x40
push 0x42c384
call fcn.004125f5
push 0x426f38
push 0x40
push 0x42c884
call fcn.004125f5
push 0x426f54
push 0x40
push 0x42c404
call fcn.004125f5
push 0x426f6c
push 0x40
push 0x42c904
call fcn.004125f5
add esp, 0x48
push 0x426f7c
push 0x40
push 0x42c484
call fcn.004125f5
push 0x426f94
push 0x40
push 0x42c984
call fcn.004125f5
push 0x426fa8
push 0x40
push 0x42c504
call fcn.004125f5
push 0x426fc0
push 0x40
push 0x42ca04
call fcn.004125f5
push 0x426fd4
push 0x40
push 0x42c584
call fcn.004125f5
push 0x426ff0
push 0x40
push 0x42ca84
call fcn.004125f5
add esp, 0x48
push 0x427000
push 0x40
push 0x42c604
call fcn.004125f5
push 0x427020
push 0x40
push 0x42cb04
call fcn.004125f5
push 0x42702c
push 0x40
push 0x42c684
call fcn.004125f5
push 0x427020
push 0x40
push 0x42cb84
call fcn.004125f5
push 0x42704c
push 0x40
push 0x42c704
call fcn.004125f5
push 0x427068
push 0x40
push 0x42cc04
call fcn.004125f5
add esp, 0x48
push 0x100
push 0
push 0x44e0b0
mov dword [0x42c300], 9
call fcn.00414050
add esp, 0xc
xor eax, eax
jmp 0x4013e0
movzx ecx, word [eax + 0x427074]
mov word [eax + 0x44e0b4], cx
add eax, 2
test cx, cx
jne 0x4013e0
xor eax, eax
jmp 0x401400
movzx ecx, word [eax + 0x427078]
mov word [eax + 0x44e0e4], cx
add eax, 2
test cx, cx
jne 0x401400
xor eax, eax
jmp 0x401420
movzx ecx, word [eax + 0x427084]
mov word [eax + 0x44e0b8], cx
add eax, 2
test cx, cx
jne 0x401420
mov dword [0x44e0e0], 0x51
xor eax, eax
movzx ecx, word [eax + 0x4270a0]
mov word [eax + 0x44e102], cx
add eax, 2
test cx, cx
jne 0x401442
push esi
mov dword [0x44e19c], 5
mov dword [0x44e1a4], 0x32
call fcn.00402b80
push 0x4271d0
push 0x4271e0
mov dword [0x44e1b0], eax
mov dword [0x42cd04], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4014b6
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp eax, 1
je 0x4014b6
xor eax, eax
jmp 0x4014b9
mov eax, dword [ebp - 4]
mov dword [0x42cd08], eax
call fcn.00402a10
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x4018f0
push 0
push 0
mov dword [0x46ebb2], 0x401660
call esi
push 0
push 0
push 0
push 0x401d90
push 0
push 0
call esi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret