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

Disassembly:
sub esp, 0xc18
mov eax, dword [0x10037a90]
xor eax, esp
mov dword [esp + 0xc14], eax
mov eax, dword [esp + 0xc28]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc1c]
add eax, 0xfffff894
mov dword [esp + 4], eax
cmp eax, 0xc8
ja 0x10002075
mov eax, dword [esp + 0xc20]
dec eax
mov dword [esp], eax
cmp eax, 0xb
ja 0x10002075
mov ecx, dword [esp + 0xc24]
dec ecx
cmp ecx, 0x1e
ja 0x10002075
push ebp
push esi
push edi
push 0x3ff
lea edx, [esp + 0x25]
push 0
push edx
mov byte [esp + 0x2c], 0
call fcn.10015a10
push 0x3ff
lea eax, [esp + 0x431]
push 0
push eax
mov byte [esp + 0x438], 0
call fcn.10015a10
mov ebp, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
add esp, 0x18
push 0x400
lea ecx, [esp + 0x24]
push ecx
push 0x1001
push 0x400
call ebp
xor eax, eax
jmp 0x10001ef0
mov cl, byte [esp + eax + 0x20]
mov byte [esp + eax + 0x420], cl
inc eax
test cl, cl
jne 0x10001ef0
push 0x400
lea edx, [esp + 0x24]
push edx
push 0x1002
push 0x400
call ebp
lea eax, [esp + 0x20]
push eax
call fcn.10015b68
add esp, 4
test eax, eax
je 0x10001f78
lea edi, [esp + 0x420]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10001f30
mov cx, word [0x1002e50c]
lea eax, [esp + 0x20]
mov word [edi], cx
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001f48
lea edi, [esp + 0x420]
sub eax, edx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10001f60
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x400
lea edx, [esp + 0x24]
push edx
push 0x1004
push 0x800
call ebp
lea eax, [esp + 0x20]
push eax
call fcn.10015b68
add esp, 4
test eax, eax
je 0x10001fe9
lea edi, [esp + 0x420]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10001fa7
mov cx, word [0x1002e508]
lea eax, [esp + 0x20]
mov word [edi], cx
mov edx, eax
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001fc0
lea edi, [esp + 0x420]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10001fd1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [esp + 0x420]
push edx
push 0
call fcn.1001788b
lea eax, [esp + 0x20]
push eax
call fcn.10015e5a
lea ecx, [esp + 0x24]
push ecx
call fcn.10015e33
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
mov dword [eax + 0x14], edx
mov edx, dword [esp + 0xc44]
push 0x1002e504
mov dword [eax + 0x10], ecx
mov dword [eax + 0xc], edx
lea eax, [esp + 0x838]
push 0x400
push eax
call fcn.10016a2d
mov edx, dword [esp + 0x34]
add esp, 0x20
pop edi
lea eax, [esp + 0x81c]
mov ecx, eax
pop esi
sub edx, ecx
pop ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10002051
mov eax, 1
mov ecx, dword [esp + 0xc14]
xor ecx, esp
call fcn.100159fa
add esp, 0xc18
ret
mov ecx, dword [esp + 0xc14]
xor ecx, esp
xor eax, eax
call fcn.100159fa
add esp, 0xc18
ret
Function at 0x10002090
Capabilities:
Get geographical location

Disassembly:
sub esp, 0xc10
mov eax, dword [0x10037a90]
xor eax, esp
mov dword [esp + 0xc0c], eax
cmp dword [esp + 0xc14], 0x17
mov eax, dword [esp + 0xc20]
mov dword [esp], eax
ja 0x100022b4
mov eax, 0x3b
cmp dword [esp + 0xc18], eax
ja 0x100022b4
cmp dword [esp + 0xc1c], eax
ja 0x100022b4
push ebp
push esi
push edi
push 0x3ff
lea ecx, [esp + 0x1d]
push 0
push ecx
mov byte [esp + 0x24], 0
call fcn.10015a10
push 0x3ff
lea edx, [esp + 0x429]
push 0
push edx
mov byte [esp + 0x430], 0
call fcn.10015a10
mov ebp, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
add esp, 0x18
push 0x400
lea eax, [esp + 0x1c]
push eax
push 0x1001
push 0x400
call ebp
xor eax, eax
mov cl, byte [esp + eax + 0x18]
mov byte [esp + eax + 0x418], cl
inc eax
test cl, cl
jne 0x10002131
push 0x400
lea ecx, [esp + 0x1c]
push ecx
push 0x1002
push 0x400
call ebp
lea edx, [esp + 0x18]
push edx
call fcn.10015b68
add esp, 4
test eax, eax
je 0x100021b0
lea edi, [esp + 0x418]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10002170
mov ax, word [0x1002e50c]
mov word [edi], ax
lea eax, [esp + 0x18]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10002187
lea edi, [esp + 0x418]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10002198
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x400
lea ecx, [esp + 0x1c]
push ecx
push 0x1004
push 0x800
call ebp
lea edx, [esp + 0x18]
push edx
call fcn.10015b68
add esp, 4
test eax, eax
je 0x10002220
lea edi, [esp + 0x418]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100021e0
mov ax, word [0x1002e508]
mov word [edi], ax
lea eax, [esp + 0x18]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100021f7
lea edi, [esp + 0x418]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10002208
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x418]
push ecx
push 0
call fcn.1001788b
lea edx, [esp + 0x18]
push edx
call fcn.10015e5a
lea eax, [esp + 0x1c]
push eax
call fcn.10015e33
mov edx, dword [esp + 0xc34]
mov ecx, dword [esp + 0xc30]
push eax
push 0x1002e510
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0xc40]
lea edx, [esp + 0x830]
push 0x400
push edx
mov dword [eax], ecx
call fcn.10016a2d
mov edx, dword [esp + 0x2c]
add esp, 0x20
pop edi
lea eax, [esp + 0x814]
mov ecx, eax
pop esi
sub edx, ecx
pop ebp
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10002290
mov eax, 1
mov ecx, dword [esp + 0xc0c]
xor ecx, esp
call fcn.100159fa
add esp, 0xc10
ret
mov ecx, dword [esp + 0xc0c]
xor ecx, esp
xor eax, eax
call fcn.100159fa
add esp, 0xc10
ret
Function at 0x10002640
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x164
mov eax, dword [0x10037a90]
xor eax, esp
mov dword [esp + 0x160], eax
push esi
push 0x160
lea eax, [esp + 8]
push 0
push eax
call fcn.10015a10
mov edx, dword [esp + 0x178]
add esp, 0xc
push 0x800
push 0x160
lea ecx, [esp + 0xc]
push ecx
push 0
push edx
mov byte [0x10038e78], 0
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov esi, eax
mov eax, dword [esp + 0x16c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100026b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x164]
mov eax, esi
pop esi
xor ecx, esp
call fcn.100159fa
add esp, 0x164
ret
Function at 0x100159fa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10037a90]
jne 0x10015a04
repz ret
jmp fcn.1001b6cb

Function at 0x10027a60
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1001c0cb
and dword [ebp - 4], 0
cmp dword [0x1003c820], 0
mov ebx, eax
jne 0x10027b11
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10027bc2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10032330
push edi
call esi
test eax, eax
je 0x10027bc2
push eax
call fcn.1001c059
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1003c820], eax
call esi
push eax
call fcn.1001c059
mov dword [esp], 0x1003230c
push edi
mov dword [0x1003c824], eax
call esi
push eax
call fcn.1001c059
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1003c828], eax
call esi
push eax
call fcn.1001c059
pop ecx
mov dword [0x1003c830], eax
test eax, eax
je 0x10027b11
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1001c059
pop ecx
mov dword [0x1003c82c], eax
mov eax, dword [0x1003c82c]
cmp eax, ebx
je 0x10027b69
cmp dword [0x1003c830], ebx
je 0x10027b69
push eax
call fcn.1001c0d4
push dword [0x1003c830]
mov esi, eax
call fcn.1001c0d4
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10027b69
test edi, edi
je 0x10027b69
call esi
test eax, eax
je 0x10027b60
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10027b60
test byte [ebp - 0xc], 1
jne 0x10027b69
or dword [ebp + 0x10], 0x200000
jmp 0x10027ba2
mov eax, dword [0x1003c824]
cmp eax, ebx
je 0x10027ba2
push eax
call fcn.1001c0d4
pop ecx
test eax, eax
je 0x10027ba2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10027ba2
mov eax, dword [0x1003c828]
cmp eax, ebx
je 0x10027ba2
push eax
call fcn.1001c0d4
pop ecx
test eax, eax
je 0x10027ba2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1003c820]
call fcn.1001c0d4
pop ecx
test eax, eax
je 0x10027bc2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10027bc4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401080
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x13c
mov eax, dword [0x404008]
xor eax, esp
mov dword [esp + 0x138], eax
push esi
lea eax, [esp + 8]
mov dword [esp + 4], 0
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionOpenWith
xorps xmm0, xmm0
mov dword [esp + 0x18], 0
push reloc.OLEAUT32.dll_SysReAllocString
movaps xmmword [esp + 0x34], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401191
mov esi, dword [esp + 8]
test esi, esi
je 0x401191
push pe_nt_image_headers32
push eax
lea eax, [esp + 0x40]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x1c], pe_nt_image_headers32
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0x403224
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x401191
lea ecx, [esp + 0x38]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401130
sub ecx, edx
sar ecx, 1
cmp ecx, 0x26
jne 0x401191
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
js 0x401191
lea eax, [esp + 4]
mov dword [esp + 0xc], 0x6a283fe2
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0x4599ecfa
push eax
push 4
push 0
lea eax, [esp + 0x30]
mov dword [esp + 0x24], 0x9e8c491
push eax
mov dword [esp + 0x2c], 0x267b1357
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [esp + 0x13c]
mov eax, dword [esp + 4]
pop esi
xor ecx, esp
call fcn.004012f0
mov esp, ebp
pop ebp
ret

Function at 0x4011b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push 2
push 0
mov dword [ebp - 4], eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
call fcn.00401080
mov ebx, eax
push 0
push ebx
call dword [sym.imp.ole32.dll_CoAllowSetForegroundWindow]
push str..pdf
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
je 0x401232
mov edi, dword [ebx]
push 4
push esi
push dword [ebp - 4]
mov edi, dword [edi + 0xc]
mov ecx, edi
push ebx
call dword [0x403110]
call edi
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebx]
push ebx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x403110]
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x8007000e
call fcn.00401030
int3

Function at 0xc36c3d
Capabilities:
Encode data using xor

Disassembly:
xor al, al
mov al, byte [edi]
xor al, bl
mov byte [edi], al
inc edi
cmp edi, ecx
jne fcn.00c36c3d
ret
Function at 0x44b6d0
Capabilities:
Get keyboard layout

Disassembly:
mov al, byte [0x65f048]
mov cl, byte [0x65f043]
and al, cl
mov edx, dword [0x65f038]
or al, 0x7c
push esi
mov byte [0x65f043], al
mov eax, dword [0x65f03c]
mov ecx, eax
push edi
shl ecx, 4
and edx, ecx
mov ecx, dword [0x65f044]
mov dword [0x65f038], edx
mov edx, dword [0x65f034]
and edx, 8
and ecx, 0xff
imul edx, ecx
or eax, edx
mov dword [0x65f03c], eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, dword [esp + 0xc]
mov dword [0x662abc], eax
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov edi, eax
call fcn.0044b610
push edi
push esi
push 0x11
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov eax, dword [esp + 0xc]
pop edi
pop esi
ret

Function at 0x588ac6
Capabilities:
Encode data using xor

Disassembly:
mov byte [0x490935f], al
ja 0x588af4
clc
cmc
ret 0x8f2e
xor eax, 0x1383e433
xchg esp, eax
push ecx
ja 0x588ae4
pushfd
loope 0x588b13
adc edx, esp
outsd dx, dword [esi]
aad 4
dec edi
sbb dl, dl
adc dword [ebp - 0x1d], 0xec291472
push es
cmpsd dword [esi], dword es:[edi]
lahf
jecxz 0x588abd
bnd jl 0x588a77
lahf
lodsd eax, dword [esi]
aam 0xe8
repne movsb byte es:[edi], byte [esi]
xchg byte ss:[0xd21c0bd4], dl
call 0x868f2fdb
adc eax, 0xd21c0bd4
invalid
clc
neg dword [ecx]
sub eax, 0x13675d32
outsd dx, dword [esi]
xor dword [esi + 0x67], esp
ret
xchg esp, eax
dec edi
mov byte [0xf2a719e9], al
pop ebx
push 0xffffffffffffff95
xchg dword [edi], edi
xlatb
cmpsd dword [esi], dword es:[edi]
adc byte [eax], ch
out 0x6a, al
push 0xf
mov al, byte [0xec45d507]
in eax, 0xc
fistp word [edx + 0x33791746]
xor byte [edi + edi*2], ah
inc eax
add byte [eax], bl
sal byte [edi], 1
pop es
xchg ebx, eax
ror dword [esp + edx*8 - 0x95fa935], 1
mov al, byte [0x8ce24aee]
cwde
jecxz 0x588b50
pop ds
mov edi, 0x11a6528e
mov esi, 0x113bf206
mov ss, word [edx - 0x5a]
adc dword [esi + 0x113bf206], edi
cmpsd dword [esi], dword es:[edi]
ficom dword [ebx]
insb byte es:[edi], dx
pop esi
mov edx, 0x12d37326
mov bl, 0x12
or dword [ebx - 0x29bfc79c], esi
movsb byte es:[edi], byte [esi]
dec ecx
inc ebp
dec esp
invalid

Function at 0x5bff8e
Capabilities:
Encode data using xor

Disassembly:
lcall 0x26e1, 0x2836717e
push edx
jnp 0x5bff2e
invalid

Function at 0x5d3e16
Capabilities:
Encode data using xor

Disassembly:
test byte [eax - 0x35b70651], 0xa6
test byte [ebx + 0x29], bh
invalid
Function at 0x65794d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x65f3a8
cmp edx, dword [eax]
je 0x65796f
add eax, 8
inc ecx
cmp eax, 0x65f438
jl 0x657960
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x65f3a8]
jne 0x657a9d
mov eax, dword [0xa5bd08]
cmp eax, 1
je 0x657a77
test eax, eax
jne 0x6579a0
cmp dword [0x65f2d4], 1
je 0x657a77
cmp edx, 0xfc
je 0x657a9d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x6579d7
lea eax, [ebp - 0x1a4]
push 0x65c9d8
push eax
call fcn.00658330
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.006587c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x657a1a
lea eax, [ebp - 0x1a4]
push eax
call fcn.006587c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65c9d4
push edi
call fcn.0065a690
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x65c9b8
push eax
call fcn.00658330
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00658340
lea eax, [ebp - 0xa0]
push 0x65c9b4
push eax
call fcn.00658340
push dword [esi + 0x65f3ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.00658340
push 0x12010
lea eax, [ebp - 0xa0]
push 0x65c98c
push eax
call fcn.0065a604
add esp, 0x2c
pop edi
jmp 0x657a9d
lea eax, [ebp + 8]
lea esi, [esi + 0x65f3ac]
push 0
push eax
push dword [esi]
call fcn.006587c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4017e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor eax, eax
mov word [ebp - 0x18], ax
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov edi, eax
cmp edi, ebx
je 0x401887
push edi
call fcn.0045010c
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x40181d
push ebx
jmp 0x401881
push esi
push edi
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x401880
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x46b72c
push esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x401880
cmp dword [ebp - 0xc], ebx
je 0x401880
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0xfeef04bd
push esi
jne 0x401881
mov cx, word [eax + 0xa]
mov word [ebp - 0x18], cx
mov cx, word [eax + 8]
mov word [ebp - 0x16], cx
mov cx, word [eax + 0xe]
mov ax, word [eax + 0xc]
mov word [ebp - 0x14], cx
mov word [ebp - 0x12], ax
jmp 0x401881
push esi
call fcn.00450117
pop ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4023dd
Capabilities:
Encode data using xor
Extract resource via kernel32 functions

Disassembly:
push 0x10
mov eax, 0x4647d2
call fcn.00460433
test byte [0x477fdc], 1
mov ebx, 0x477fd0
jne 0x402418
or dword [0x477fdc], 1
and dword [ebp - 4], 0
mov esi, ebx
call fcn.00401310
push 0x464e02
call fcn.00450a9a
or dword [ebp - 4], 0xffffffff
pop ecx
cmp dword [0x477fd0], 0
je 0x40242b
mov eax, dword [0x477fd4]
jmp 0x4024ea
push 0xa
push 0x321
push dword [0x477624]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x402472
push edi
push dword [0x477624]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push dword [0x477624]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402472
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x402476
xor eax, eax
jmp 0x4024ea
lea eax, [esi + 1]
push eax
call fcn.0045010c
pop ecx
push eax
mov eax, esi
lea edi, [ebp - 0x1c]
call fcn.00401344
mov dword [ebp - 4], 1
cmp dword [ebp - 0x1c], 0
jne 0x4024aa
or dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x402472
call fcn.00401000
jmp 0x402472
mov edi, dword [ebp - 0x18]
push esi
push dword [ebp - 0x10]
push edi
call fcn.004562c0
add esp, 0xc
xor eax, eax
test esi, esi
je 0x4024c9
xor byte [edi + eax], 0x55
inc eax
cmp eax, esi
jb 0x4024c0
mov ecx, edi
call fcn.00401c4d
lea esi, [ebp - 0x1c]
call fcn.0040136d
or dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x4024e8
call fcn.00401000
mov eax, edi
call fcn.004604d2
ret
Function at 0x4040bf
Capabilities:
Check http status code
Read http header
Receive http response

Disassembly:
push 0x24
mov eax, 0x4644ff
call fcn.00460433
xor edi, edi
push edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push 0x20000013
push dword [ebp + 8]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], 4
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x404210
cmp dword [ebp - 0x18], 0xc8
jne 0x404210
mov eax, 0x400
push eax
mov dword [ebp - 0x14], edi
mov ebx, eax
call fcn.00451470
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpReadData]
pop ecx
lea ecx, [ebp - 0x14]
push ecx
push 0x3ff
push eax
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
call esi
test eax, eax
je 0x404210
cmp dword [ebp - 0x14], 0
je 0x404173
add edi, dword [ebp - 0x14]
mov eax, ebx
sub eax, edi
cmp eax, 0x10
jae 0x40415a
imul ebx, ebx, 3
shr ebx, 1
push ebx
push dword [ebp - 0x10]
call fcn.00451504
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
mov eax, ebx
sub eax, edi
dec eax
push eax
mov eax, dword [ebp - 0x10]
add eax, edi
push eax
push dword [ebp + 8]
call esi
test eax, eax
jne 0x404135
test eax, eax
je 0x404210
lea eax, [edi + 1]
push eax
call fcn.0045010c
pop ecx
push dword [ebp - 0x1c]
xor esi, esi
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
call fcn.00401259
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x24]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], edi
call fcn.00401402
cmp dword [ebp - 0x2c], esi
jne 0x4041b2
mov dword [ebp - 0x30], esi
mov ebx, dword [ebp + 0x10]
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.0040136d
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x4041d1
call fcn.00401000
or dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x4041e1
call fcn.00401000
cmp dword [ebx], 0
je 0x4041fc
push edi
push dword [ebp - 0x10]
push dword [ebx + 4]
call fcn.004562c0
mov eax, dword [ebx + 4]
add esp, 0xc
mov byte [edi + eax], 0
push dword [ebp - 0x10]
call fcn.00451436
cmp dword [ebx], 0
pop ecx
je 0x404210
mov eax, dword [ebp + 0xc]
dec eax
jmp 0x404213
mov eax, dword [ebp + 0xc]
call fcn.004604d2
ret
Function at 0x4047c3
Capabilities:
Compare security identifiers

Disassembly:
push 4
mov eax, 0x4648fa
call fcn.00460433
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [esi], edi
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], edi
cmp eax, edi
jbe 0x404806
mov ebx, dword [ebp + 0x10]
add ebx, 0xc
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
test eax, eax
je 0x4047fe
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x4047fe
inc edi
add ebx, 0x10
dec dword [ebp - 0x10]
jne 0x4047e9
xor ecx, ecx
push 0x28
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.0045010c
pop ecx
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x40484e
push fcn.004048de
push 0x4046be
push edi
lea ebx, [eax + 4]
push 0x28
push ebx
mov dword [eax], edi
call fcn.00451672
jmp 0x404850
xor ebx, ebx
mov byte [ebp - 4], 0
cmp ebx, dword [esi]
je 0x404861
mov eax, esi
call fcn.00404904
mov dword [esi], ebx
xor eax, eax
cmp dword [esi], eax
je 0x4048d4
cmp dword [ebp + 0x14], eax
jbe 0x4048b5
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
add ebx, 0xc
mov dword [ebp + 0x14], eax
mov eax, dword [ebx]
test eax, eax
je 0x4048ad
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x4048ad
mov ecx, dword [ebp - 0x10]
mov eax, dword [esi]
add dword [ebp - 0x10], 0x28
add eax, ecx
mov byte [ebp - 4], 2
je 0x4048a9
lea ecx, [ebx - 0xc]
push eax
call fcn.0040459c
mov byte [ebp - 4], 0
add ebx, 0x10
dec dword [ebp + 0x14]
jne 0x40487b
mov ecx, dword [esi]
mov dword [esi + 4], edi
imul edi, edi, 0x28
add edi, ecx
mov eax, edi
sub eax, ecx
push 0x28
pop ebx
cdq
idiv ebx
push eax
push edi
push ecx
call fcn.00404926
add esp, 0xc
mov eax, esi
call fcn.004604d2
ret 0x10

Function at 0x405051
Capabilities:
Check mutex on windows

Disassembly:
push 0xc
mov eax, 0x4649fd
call fcn.00460433
mov eax, dword [0x477778]
xor esi, esi
cmp eax, esi
jne 0x405138
test byte [0x477ff4], 1
jne 0x405095
or dword [0x477ff4], 1
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0x464e14
mov dword [0x477ff0], eax
call fcn.00450a9a
pop ecx
mov eax, dword [0x477ff0]
cmp eax, esi
je 0x405133
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, esi
je 0x4050ed
cmp eax, 0x80
je 0x4050ed
push 0xc
call fcn.00450157
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 2
cmp eax, esi
je 0x4050d8
mov edi, eax
call fcn.0040513e
mov esi, eax
cmp esi, dword [0x477778]
je 0x405133
call fcn.004054b0
mov dword [0x477778], esi
jmp 0x405133
mov ebx, dword [0x477ff0]
mov dword [ebp - 0x10], ebx
push 0xc
mov dword [ebp - 4], esi
call fcn.00450157
mov edi, eax
pop ecx
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 1
cmp edi, esi
je 0x405115
call fcn.0040513e
mov esi, eax
cmp esi, dword [0x477778]
je 0x405128
call fcn.004054b0
mov dword [0x477778], esi
test ebx, ebx
je 0x405133
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x477778]
call fcn.004604d2
ret