joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003d30
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x10003d5c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x10009bc0]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x10003d97
push 2
push ebp
push ecx
call fcn.100042b0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x10003ef9
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x10003e41
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x10003df2
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x10003ddf
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x10003dc2
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10003eea
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x10003e3d
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x10003dbe
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x10003ed9
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10003e95
cmp eax, 5
jne 0x10003e7e
call fcn.10004290
mov dword [eax], 9
call fcn.100042a0
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.10004210
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x10003eb5
cmp byte [ebp], 0x1a
jne 0x10003eb5
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.10004290
mov dword [eax], 0x1c
call fcn.100042a0
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x10003e3d
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10003f2a
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x10003e41
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x10003e41
Function at 0x25811528
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x25811537
pop dword [ebp - 0x10]
mov eax, 0x25811537
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x3ce86298
sub dword [ebp - 0x20], 0xee961d4d
mov dword [ebp - 0x1c], 0x5128e90a
add dword [ebp - 0x1c], 0xe10a633b
mov dword [ebp - 0x18], 0x1d90c470
sub dword [ebp - 0x18], 0xd1448042
mov dword [ebp - 0x14], 0x979e1904
add dword [ebp - 0x14], 0x6861e6fc
lea eax, [ebp - 0x20]
push eax
mov eax, 0x6fce4996
sub eax, 0x4a4c7952
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0xe43fe929
add dword [ebp - 0x20], 0x9032802d
mov dword [ebp - 0x1c], 0x5e4a5560
add dword [ebp - 0x1c], 0xe3220c15
mov dword [ebp - 0x18], 0x6f817fe2
add dword [ebp - 0x18], 0xf3edec8a
mov dword [ebp - 0x14], 0xdead9fe9
add dword [ebp - 0x14], 0x21526017
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3e500
push 0
call eax
mov ecx, 0x4e5e
xor edi, edi
add edi, eax
mov esi, 0x25829600
add esi, dword [ebp - 0x10]
mov ebx, 0xd02d54f
add ebx, 0xafff8c6a
sub dword [ebp - 0xc], 0x7021061d
mov edx, dword [esi]
xor dword [ebp - 0xc], 0x9b2ac95a
add edx, ebx
sub dword [ebp - 4], 0x511eca00
mov dword [edi], edx
mov dword [ebp - 0xc], 0x9ba84dc5
add edi, 0x593278a0
add edi, 0xa6cd8764
add esi, 0x5c68e902
sub esi, 0x5c68e8fe
loop 0x25811645
add eax, 0x12c4b
mov ebx, eax
add eax, 0xafe7ef7f
add eax, 0x50181086
mov ecx, 0x25026667
sub ecx, 0xff826667
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x401000
Capabilities:
Allocate or change rwx memory
Identify system language via api

Disassembly:
push 0x40
push 0x1000
push 0x78400
push 0
call sub.kernel32.dll_GetUserDefaultLangID
call sub.kernel32.dll_VirtualAlloc
call fcn.0049f8f3
ret
Function at 0x10019954
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10019a86
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
test eax, eax
je 0x10019a66
mov dword [ebp - 0x1c], 0x25ac
cmp dword [ebp - 0x1c], 0x5e3
jge 0x10019a5a
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x1000818c
call fcn.1004eb00
add esp, 0xc
xor ecx, ecx
mov eax, dword [ebp - 8]
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100487e9
pop ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
and dword [ebp - 0x14], 0
jmp 0x100199d8
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 8]
jge 0x100199f8
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + eax*4]
push eax
push 0x10008150
call fcn.1004eb00
pop ecx
pop ecx
jmp 0x100199d1
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
lea edx, [ecx + eax*4]
mov ecx, dword [ebp - 0xc]
call fcn.1002eb6d
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
jg 0x10019a35
mov eax, dword [ebp - 8]
dec eax
cmp dword [ebp - 0x10], eax
jge 0x10019a42
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 0xc]
mov eax, dword [edx + eax*4]
cmp eax, dword [esi + ecx*4 - 4]
jne 0x10019a42
push 0x10008248
call fcn.1004ef5e
pop ecx
jmp 0x10019a5a
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax*4]
push 0x1000824c
call fcn.1004ef5e
pop ecx
pop ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
jmp 0x10019a84
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax]
test eax, eax
je 0x10019a84
push 0
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x10019ae4
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x38], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax]
test eax, eax
je 0x10019acd
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov esi, dword [eax]
push 0
mov ecx, dword [ebp - 0x48]
call fcn.1002a943
mov dword [eax], esi
jmp 0x10019ae4
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10019ae4
push 0x666
call dword [sym.imp.USER32.dll_GetDC]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001cf8f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1001d007
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x1001cfd2
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x1001d005
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
test eax, eax
je 0x1001d005
push 0
push 0
push 0
push 0
push 0xf6b
push 1
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
jmp 0x1001d03c
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
push 0xf4a
push 0x502f
push 0x7f16
push dword [ebp - 0x20]
push 0x4538
push dword [ebp - 0x24]
push 0
push 0x1bdb
call fcn.1000a904
add esp, 0x20
mov esp, ebp
pop ebp
ret

Function at 0x1001e0cc
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1001e11f
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x1001e109
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x1001e11a
push 0
push 0x131b
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
jmp 0x1001e1cd
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x1397
cmp dword [ebp - 0x18], 0x98a
jge 0x1001e1bb
push 0x1074f4e8
push 0x1065ac84
push 0x1000818c
call fcn.1004eb00
add esp, 0xc
cmp dword [0x1065ac84], 1
jle 0x1001e16d
cmp dword [0x1074f4e8], 0
jne 0x1001e16d
push 0x10008274
call fcn.1004f342
pop ecx
push dword [0x1074f4e8]
push 0x10008150
call fcn.1004ef5e
pop ecx
pop ecx
cmp dword [0x1065ac84], 1
jne 0x1001e1b0
mov dword [ebp - 4], 1
jmp 0x1001e198
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [0x1065ac84]
jge 0x1001e1b0
push 0x10008280
call fcn.1004ef5e
pop ecx
jmp 0x1001e191
push 0x100080bd
call fcn.1004f342
pop ecx
push dword [ebp - 0x1c]
push 0
push 0x7938
call fcn.1000ab57
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x100353e2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 7
mov dword [ebp - 0x10], 0xfe9a5a16
mov dword [ebp - 0x10], 0x1a078351
mov dword [ebp - 0x14], 0x694486ca
push ebx
mov dword [ebp - 8], 0xf
mov ebx, ecx
cmp dword [ebp - 8], 0xfffffff3
push edi
mov edi, edx
jl 0x10035512
push esi
xor esi, esi
inc esi
push 2
lea ecx, [ebp - 0x20]
call fcn.1002a894
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], 0xffdeabfd
mov dword [ebp - 0xc], edx
jmp 0x1003544a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
mov dword [eax + ecx*4], 0x32a27689
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 2
jl 0x1003543a
mov dword [ebp - 0xc], esi
cmp dword [ebp - 0xc], edx
jl 0x1003548e
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
je 0x10035477
push edx
push edx
push edx
push edx
push 0xf6b
push esi
push edx
push edx
push edx
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor edx, edx
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
je 0x10035489
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor edx, edx
dec dword [ebp - 0xc]
jns 0x10035458
mov eax, dword [ebp - 8]
xor edx, edx
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
cmp ecx, eax
mov esi, dword [ebp - 0x20]
setge dl
xor ecx, ecx
cmp edx, 0x5c9b
setle cl
xor eax, eax
cmp ecx, dword [esi + 4]
setg al
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x100354d9
cmp dword [ebp - 0x14], 0
jne 0x100354d9
xor eax, eax
jmp 0x100354dc
xor eax, eax
inc eax
add eax, dword [esi + 4]
lea ecx, [ebp - 0x20]
xor edx, edx
cmp dword [esi + 4], eax
mov eax, dword [ebp - 0x20]
setge dl
sub edx, dword [eax]
mov eax, dword [ebp - 0x14]
neg edx
sbb edx, edx
inc edx
add eax, edx
mov dword [ebp - 0x10], eax
call fcn.1002a9ee
dec dword [ebp - 8]
cmp dword [ebp - 8], 0xfffffff3
push 1
pop esi
jge 0x1003541f
pop esi
mov dword [ebp - 0x14], 0x99ac7894
mov byte [ebp - 1], 0
cmp byte [ebp - 1], 0
je 0x10035544
push 0x2091
push 0x5c
push 0x1711
push 0x2037
push 0x97e
push 0x199a
call dword [sym.imp.GDI32.dll_PatBlt]
mov byte [ebp - 1], 0
cmp byte [ebp - 1], 0
je 0x10035559
push 0x390
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edx, dword [ebx]
mov eax, dword [edi]
pop edi
pop ebx
imul ecx, dword [edx], 0xa
movsx eax, byte [eax]
add eax, 0xffffffd0
add eax, ecx
mov dword [edx], eax
mov esp, ebp
pop ebp
ret

Function at 0x10035570
Capabilities:
Create process on windows

Disassembly:
xor eax, eax
push eax
push eax
push eax
push eax
push 0xf6b
push 1
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
ret
Function at 0x10046d02
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1006804d
call fcn.10066878
sub esp, 0xc
push ebx
push esi
mov dword [ebp - 0x18], 0x20db
cmp dword [ebp - 0x18], 0x2175
push edi
mov dword [ebp - 0x10], esp
jle 0x10046d7f
push 0x1319
push 0x25f1
call dword [sym.imp.GDI32.dll_SetMapMode]
xor esi, esi
xor edi, edi
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov eax, ebx
sar eax, cl
mov ecx, 0x10657c98
and eax, edi
xor eax, esi
cdq
push edx
push eax
call fcn.1002a772
mov ecx, dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, 0x4253
jl 0x10046d40
inc ebx
cmp ebx, 0x5c98
jl 0x10046d3b
inc edi
cmp edi, 0x7b82
jl 0x10046d39
inc esi
cmp esi, 0x912
jl 0x10046d37
and dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0x1dcf
jge 0x10046d9b
mov edx, 0x10008618
mov ecx, 0x10657c98
call fcn.1002ebb2
fldz
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10046e48
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
mov dword [esp + 0xc], 0x13b7
cmp dword [esp + 0xc], 0x16b0
push esi
push edi
jle 0x10046efb
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor esi, esi
xor edi, edi
mov dword [esp + 0x10], edi
xor ebx, ebx
mov dword [esp + 0xc], ebx
and dword [esp + 0x18], 0
mov eax, edi
cdq
idiv ebx
mov edi, dword [esp + 0x18]
mov ebx, 0x2e2d
mov dword [esp + 0x1c], edx
mov eax, edi
lea ecx, [esp + 0x20]
xor eax, esi
cdq
push edx
push eax
call fcn.10046727
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x10046eb1
mov eax, dword [eax]
push eax
call fcn.1004ef5e
pop ecx
push 0
push 1
lea ecx, [esp + 0x28]
call fcn.1002b118
add edi, dword [esp + 0x1c]
dec ebx
jne 0x10046e97
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
inc ebx
mov dword [esp + 0xc], ebx
cmp ebx, 0x57f0
jl 0x10046e80
inc edi
mov dword [esp + 0x10], edi
cmp edi, 0x4bc6
jl 0x10046e7a
inc esi
cmp esi, 0x2107
jl 0x10046e74
cmp dword [esp + 0x14], 0x1175
jge 0x10046f10
push 0x100086c4
call fcn.1004ef5e
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10062525
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1006c760]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.100533c8
mov dword [ebp - 0x14], eax
cmp dword [0x10658dc0], esi
jne 0x10062618
push 0x800
push esi
push 0x10007fe8
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x100625a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x100626f8
push esi
push esi
push 0x10007fe8
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x100626f8
push 0x10008000
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100626f8
push eax
call ebx
push 0x1000800c
push edi
mov dword [0x10658dc0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x1000801c
push edi
mov dword [0x10658dc4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10008030
push edi
mov dword [0x10658dc8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10658dd0], eax
test eax, eax
je 0x10062615
push 0x1000804c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10658dcc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1006263d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10062630
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10062652
push 4
pop eax
jmp 0x100626fa
cmp dword [ebp - 0x14], esi
je 0x10062652
push dword [0x10658dc0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10062637
mov eax, dword [0x10658dcc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x100626b0
cmp dword [0x10658dd0], edi
je 0x100626b0
push eax
call ebx
push dword [0x10658dd0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x100626b0
test eax, eax
je 0x100626b0
call ecx
test eax, eax
je 0x100626a5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x100626a5
test byte [ebp - 8], 1
jne 0x100626b0
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x100626e0
mov eax, dword [0x10658dc4]
cmp eax, edi
je 0x100626dd
push eax
call ebx
test eax, eax
je 0x100626dd
call eax
mov esi, eax
test esi, esi
je 0x100626dd
mov eax, dword [0x10658dc8]
cmp eax, edi
je 0x100626dd
push eax
call ebx
test eax, eax
je 0x100626dd
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10658dc0]
call ebx
test eax, eax
je 0x100626f8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x100626fa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10050bb0
mov esp, ebp
pop ebp
ret
Function at 0x401bd7
Capabilities:
Create process on windows
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
or dword [ebp - 4], 0xffffffff
push esi
push 0x44
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.004139c0
push 0x10
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.004139c0
add esp, 0x18
mov dword [ebp - 0x58], 0x44
cmp dword [0x432d20], esi
je 0x401c43
push 0x432d2c
push str.Country
push esi
call fcn.0040c6db
push 0x432ad0
push str.PostStatusUrl
push esi
call fcn.0040c6db
push 0x432bd0
push str.Method
push esi
call fcn.0040c6db
add esp, 0x24
jmp 0x401c52
push esi
push str.PostStatusUrl
push esi
call fcn.0040c6db
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop esi
test eax, eax
je 0x401c8f
push dword [ebp - 0x14]
call fcn.0040135a
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401c98
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret
Function at 0x402a74
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x402ac2
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x402ad3
push 0xd
pop eax
jmp 0x402afd
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x402ad6
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x402fb3
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x431420]
xor eax, ebp
mov dword [ebp + 0x9c], eax
mov eax, dword [ebp + 0xa8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.00401296
mov ebx, eax
cmp ebx, esi
je 0x403026
lea ecx, [ebp - 0x74]
call fcn.0040127b
mov eax, ebx
mov ecx, dword [ebp + 0x9c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413f3b
add ebp, 0xa0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x40303e
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.00402fb3
cmp eax, esi
jne 0x403070
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], 0x100
call ebx
test eax, eax
je 0x40302e
lea ecx, [ebp - 0x74]
call fcn.0040127b
push dword [ebp - 0x78]
mov ecx, edi
call fcn.0040299d
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.0040127b
mov eax, esi
jmp 0x40300c
Function at 0x40a17d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
call fcn.00409f3b
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 5
push dword [esp + 0x24]
xor ebp, ebp
push esi
mov dword [esp + 0x1c], ebp
call edi
mov dword [esp + 0x14], eax
cmp eax, ebp
je 0x40a24d
push ebx
push pe_nt_image_headers32
push dword [esp + 0x28]
push esi
call edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebp
je 0x40a1d3
push eax
push esi
call edi
push eax
call ebx
mov ebp, eax
push dword [esp + 0x18]
and dword [esp + 0x14], 0
push esi
call edi
test eax, eax
je 0x40a231
push eax
call ebx
mov edi, eax
test edi, edi
je 0x40a231
push ebp
push edi
call fcn.004015bc
pop ecx
pop ecx
push dword [esp + 0x30]
mov ebx, eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push ebx
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x40a21d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp ebx, edi
je 0x40a23b
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40a23b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
pop ebx
je 0x40a24d
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0xc
ret