joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1f934c5f
Capabilities:
Set registry value

Disassembly:
push 0x60
mov eax, 0x1f969395
call fcn.1f8a6081
mov edi, dword [ebp + 8]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], 1
mov eax, dword [0x1f97b00c]
mov esi, 0x1f97b00c
mov ebx, 0x1f88a3b4
cmp eax, esi
je 0x1f934ca3
test dword [eax + 0x1c], 0x200000
je 0x1f934ca3
push ecx
push ebx
push 0x4a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1f895d0a
and dword [ebp - 0x6c], 0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x6c]
push eax
push 0x102
push 0
push dword [ebp - 0x64]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.KERNEL32.dll_RegOpenKeyExW]
mov ecx, eax
mov dword [ebp - 0x68], ecx
cmp ecx, 2
jne 0x1f934d02
mov eax, dword [0x1f97b00c]
cmp eax, esi
je 0x1f934cf4
test dword [eax + 0x1c], 0x400000
je 0x1f934cf4
push dword [ebp - 0x64]
push ebx
push 0x4b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1f8970b0
mov eax, dword [edi]
push 0x80338005
mov ecx, edi
call dword [eax + 0x20]
jmp 0x1f934d71
cmp ecx, 5
jne 0x1f934d33
mov eax, dword [0x1f97b00c]
cmp eax, esi
je 0x1f934d2a
test dword [eax + 0x1c], 0x400000
je 0x1f934d2a
push dword [ebp - 0x64]
push ebx
push 0x4c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1f8970b0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x10]
jmp 0x1f934d71
test ecx, ecx
je 0x1f934d7a
mov eax, dword [0x1f97b00c]
cmp eax, esi
je 0x1f934d5b
test dword [eax + 0x1c], 0x400000
je 0x1f934d5b
push dword [ebp - 0x64]
push ecx
push ebx
push 0x4d
push dword [eax + 0x14]
push dword [eax + 0x10]
call int.1f8b0017
push dword [ebp - 0x68]
mov eax, dword [edi]
push 0x1f888030
push 0x4033c360
push edi
call dword [eax + 0x28]
add esp, 0x10
and dword [ebp - 0x60], 0
jmp 0x1f934e0d
lea eax, [ebp - 0x5c]
push eax
call fcn.1f8ab7a0
push 0x4a
lea eax, [ebp - 0x5c]
push eax
push 1
push 0
push 0x1f88a6cc
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_RegSetValueExW]
mov dword [ebp - 0x68], eax
test eax, eax
je 0x1f934de4
mov ecx, dword [edi]
and dword [ebp - 0x60], 0
push eax
push 0x1f888b74
push 0x4033c360
push edi
call dword [ecx + 0x28]
add esp, 0x10
mov eax, dword [0x1f97b00c]
cmp eax, esi
je 0x1f934e0d
test dword [eax + 0x1c], 0x400000
je 0x1f934e0d
push 0x1f88a6cc
push dword [ebp - 0x68]
push ebx
push 0x4e
push dword [eax + 0x14]
push dword [eax + 0x10]
call int.1f8b0017
jmp 0x1f934e0d
mov eax, dword [0x1f97b00c]
cmp eax, esi
je 0x1f934e0d
test dword [eax + 0x1c], 0x200000
je 0x1f934e0d
lea ecx, [ebp - 0x5c]
push ecx
push 0x1f88a6cc
push ebx
push 0x4f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1f8a7b01
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.1f8ab67d
mov eax, dword [ebp - 0x60]
call fcn.1f8a6113
ret 4
Function at 0x1f94373f
Capabilities:
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [0x1f97b00c]
mov ebx, 0x1f97b00c
mov edi, 0x1f88df4c
cmp eax, ebx
je 0x1f94377c
test dword [eax + 0x1c], 0x200000
je 0x1f94377c
push esi
push edi
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1f895d0a
mov eax, dword [0x1f97b00c]
cmp dword [esi], 0
jne 0x1f9437ac
cmp eax, ebx
je 0x1f94379f
test dword [eax + 0x1c], 0x400000
je 0x1f94379f
push dword [esi + 4]
push edi
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1f895d0a
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1f94380d
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x2c]
push eax
push 0
push dword [esi + 0xc]
call dword [sym.imp.API_MS_WIN_Service_Management_L2_1_0.dll_QueryServiceStatusEx]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
test eax, eax
je 0x1f9437d6
xor eax, eax
cmp dword [ebp - 0x28], 4
sete al
mov dword [ecx], eax
mov eax, dword [0x1f97b00c]
cmp eax, ebx
je 0x1f94380a
test dword [eax + 0x1c], 0x200000
je 0x1f94380a
cmp dword [ecx], 0
mov ecx, 0x1f88df78
jne 0x1f9437f7
mov ecx, 0x1f88df68
push ecx
push dword [ebp - 4]
push esi
push edi
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1f918d24
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1f943819
Capabilities:
Start service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [0x1f97b00c]
mov edi, 0x1f97b00c
mov ebx, 0x1f88df4c
cmp eax, edi
je 0x1f943856
test dword [eax + 0x1c], 0x200000
je 0x1f943856
push esi
push ebx
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1f895d0a
mov eax, dword [0x1f97b00c]
xor ecx, ecx
cmp dword [esi], ecx
jne 0x1f94388a
cmp eax, edi
je 0x1f94387a
test dword [eax + 0x1c], 0x400000
je 0x1f94387a
push dword [esi + 4]
push ebx
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1f895d0a
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1f943913
push ecx
push ecx
push dword [esi + 0xc]
call dword [sym.imp.API_MS_WIN_Service_Management_L1_1_0.dll_StartServiceW]
test eax, eax
jne 0x1f9438ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x1f9438ae
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
and dword [ebp - 4], 0
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
call fcn.1f94373f
mov dword [ebp - 8], eax
test eax, eax
je 0x1f9438de
cmp dword [ebp - 0xc], 0
jne 0x1f9438de
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x14
jl 0x1f9438b2
mov eax, dword [0x1f97b00c]
cmp eax, edi
je 0x1f943910
test dword [eax + 0x1c], 0x200000
je 0x1f943910
cmp dword [ebp - 8], 0
mov ecx, 0x1f88dfa4
jne 0x1f943900
mov ecx, 0x1f88df88
push ecx
push esi
push ebx
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call int.1f8b0017
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1f94391d
Capabilities:
Modify service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [0x1f97b00c]
mov ebx, 0x1f97b00c
mov esi, 0x1f88df4c
cmp eax, ebx
je 0x1f94395b
test dword [eax + 0x1c], 0x200000
je 0x1f94395b
push dword [ebp + 8]
push edi
push esi
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1f89f5b3
mov eax, dword [0x1f97b00c]
xor ecx, ecx
cmp dword [edi], ecx
jne 0x1f94398f
cmp eax, ebx
je 0x1f94397f
test dword [eax + 0x1c], 0x400000
je 0x1f94397f
push dword [edi + 4]
push esi
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1f895d0a
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1f943a7a
cmp dword [ebp + 8], 2
je 0x1f9439b7
cmp dword [ebp + 8], 3
je 0x1f9439b7
push ecx
push 0x54f
push 0x1f8799e8
push 0xe9
push 0x1f88dfe0
call fcn.1f8a7bdf
jmp 0x1f943988
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push dword [edi + 0xc]
call dword [sym.imp.API_MS_WIN_Service_Management_L2_1_0.dll_ChangeServiceConfigW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x1f9439f6
mov eax, dword [0x1f97b00c]
cmp eax, ebx
je 0x1f943a77
test dword [eax + 0x1c], 0x400000
je 0x1f943a4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x19
jmp 0x1f943a35
cmp dword [ebp + 8], 3
jne 0x1f943a45
lea eax, [ebp + 8]
push eax
push 3
push dword [edi + 0xc]
mov dword [ebp + 8], 1
call dword [sym.imp.API_MS_WIN_Service_Management_L2_1_0.dll_ChangeServiceConfig2W]
mov dword [ebp - 4], eax
test eax, eax
jne 0x1f943a45
mov eax, dword [0x1f97b00c]
cmp eax, ebx
je 0x1f943a77
test dword [eax + 0x1c], 0x400000
je 0x1f943a4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1a
mov eax, dword [0x1f97b00c]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1f895d0a
mov eax, dword [0x1f97b00c]
cmp eax, ebx
je 0x1f943a77
test dword [eax + 0x1c], 0x200000
je 0x1f943a77
cmp dword [ebp - 4], 0
mov ecx, 0x1f88dfd0
jne 0x1f943a67
mov ecx, 0x1f88dfb4
push ecx
push edi
push esi
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call int.1f8b0017
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1f943c85
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, ecx
push edi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
lea edi, [esi + 0xc]
mov dword [edi], ebx
mov dword [esi + 0x10], ebx
mov eax, dword [0x1f97b00c]
cmp eax, 0x1f97b00c
je 0x1f943cca
test dword [eax + 0x1c], 0x200000
je 0x1f943cca
push esi
push 0x1f88e058
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1f895d0a
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, ebx
mov dword [ebp - 4], eax
jge 0x1f943cfa
mov eax, dword [0x1f97b00c]
cmp eax, 0x1f97b00c
je 0x1f943d44
test dword [eax + 0x1c], 0x400000
je 0x1f943d44
push dword [ebp - 4]
push 0x1f88e058
push 0xb
jmp 0x1f943d39
push edi
xor eax, eax
push 0x1f88e0a8
inc eax
push eax
push ebx
push 0x1f88e098
mov dword [esi + 8], eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
mov dword [ebp - 4], eax
jge 0x1f943d51
mov eax, dword [0x1f97b00c]
cmp eax, 0x1f97b00c
je 0x1f943d44
test dword [eax + 0x1c], 0x400000
je 0x1f943d44
push dword [ebp - 4]
push 0x1f88e058
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1f895d0a
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
push 0x1f88e068
lea ecx, [esi + 0x10]
call fcn.1f943c04
mov dword [esi], 1
jmp 0x1f943d4a
Function at 0x1f94f47c
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
add dword [ecx + 0xd010], esi
sub dword [ecx + 0xd014], esi
add dword [ecx + 0xd008], esi
test esi, esi
je 0x1f94f4ea
push edi
mov edx, dword [ecx + 0xd00c]
movzx eax, byte [edx + ecx + 6]
movzx edi, byte [edx + ecx + 7]
shl eax, 2
xor eax, edi
movzx edi, byte [edx + ecx + 8]
shl eax, 2
xor eax, edi
add edx, 0xfffffffe
and edx, 0x3ff
lea eax, [ecx + eax*4 + 0x9008]
mov edi, dword [eax]
mov dword [ecx + edx*4 + 0x8008], edi
mov edx, dword [ecx + 0xd00c]
dec esi
dec edx
dec edx
mov dword [eax], edx
inc dword [ecx + 0xd00c]
test esi, esi
jne 0x1f94f49c
pop edi
pop esi
pop ebp
ret 4

Function at 0x1f954f10
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esi - 0x10]
mov eax, dword [esi - 0x14]
push edi
sub ecx, 2
xor edi, edi
cmp eax, ecx
jae 0x1f954f63
push ebx
movzx edx, byte [eax + 2]
movzx ebx, byte [eax]
movzx ebx, word [ebx*2 + 0x1f97e038]
movzx edx, word [edx*2 + 0x1f97e438]
xor edx, ebx
movzx ebx, byte [eax + 1]
movzx ebx, word [ebx*2 + 0x1f97e238]
xor edx, ebx
mov bx, word [esi + edx*2 - 0x15a5c]
mov word [esi + edi*2], bx
mov word [esi + edx*2 - 0x15a5c], di
inc eax
inc edi
cmp eax, ecx
jb 0x1f954f21
pop ebx
add ecx, 2
cmp eax, ecx
jae 0x1f954f84
sub ecx, eax
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
shr ecx, 1
lea edi, [esi + edi*2]
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
pop edi
ret
Function at 0x401260
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
push str.advapi32.dll
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x401339
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenSCManagerA
push esi
call edi
push str.CloseServiceHandle
push esi
mov ebx, eax
call edi
push str.OpenServiceA
push esi
mov ebp, eax
call edi
push str.ControlService
push esi
mov dword [esp + 0x20], eax
call edi
push str.DeleteService
push esi
mov dword [esp + 0x18], eax
call edi
test ebx, ebx
mov dword [esp + 0x1c], eax
je 0x401332
test ebp, ebp
je 0x401332
mov edi, dword [esp + 0x18]
test edi, edi
je 0x401332
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x401332
test eax, eax
je 0x401332
push 0xf003f
push 0
push 0
call ebx
mov ebx, eax
test ebx, ebx
je 0x401332
mov eax, dword [esp + 0x40]
push 0xf01ff
push eax
push ebx
call edi
mov edi, eax
test edi, edi
je 0x40131a
lea ecx, [esp + 0x20]
push ecx
push 1
push edi
call dword [esp + 0x1c]
push edi
call dword [esp + 0x20]
push edi
mov dword [esp + 0x18], eax
call ebp
push ebx
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 4

Function at 0x401a20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ebx, 4
push edi
mov dword [esp + 0xc], ebx
mov eax, dword [esi + 4]
test eax, eax
je 0x401a8c
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
lea ecx, [esp + 0x1c]
push edx
push ecx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401a7a
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
cmp eax, 1
jne 0x401a6f
push ebx
push edi
mov ecx, esi
call fcn.00401af0
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 8
ret 0xc
cmp dword [esp + 0x18], ebx
jne 0x401a8c
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov eax, dword [esp + 0x10]
je 0x401a90
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
add esp, 8
ret 0xc
Function at 0x401b10
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40b79f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], 0
mov eax, dword [esi + 4]
test eax, eax
jne 0x401b52
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call fcn.00401d10
jmp 0x401c68
lea ecx, [esp + 0x1c]
call fcn.00401cd0
mov edi, dword [esp + 0x38]
mov eax, dword [esi + 4]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push 0
push edx
push 0
mov ebx, 1
push edi
push eax
mov dword [esp + 0x44], ebx
call ebp
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x10]
test ecx, ecx
je 0x401b91
mov dword [ecx], edx
test eax, eax
jne 0x401bf0
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x401ba7
cmp eax, 2
je 0x401ba7
cmp eax, 7
jne 0x401bf0
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x401bb1
mov dword [ecx], eax
lea ecx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.00401e10
lea edx, [esp + 0x18]
push eax
mov eax, dword [esi + 4]
push edx
push 0
push edi
push eax
call ebp
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
call fcn.00401e90
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00401d60
mov dword [esp + 0x18], ebx
jmp 0x401c5a
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x3c]
test eax, eax
je 0x401c46
push 0
push 1
push ebx
push edi
mov ecx, esi
call fcn.00401c80
test eax, eax
je 0x401c46
mov eax, dword [esp + 0x44]
test eax, eax
je 0x401c1b
mov dword [eax], 1
mov eax, dword [esp + 0x48]
test eax, eax
je 0x401c46
mov ecx, dword [esi + 4]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push 0
push eax
push 0
push edi
push ecx
call ebp
test eax, eax
jne 0x401c46
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x10]
mov dword [eax], edx
mov esi, dword [esp + 0x34]
push ebx
mov ecx, esi
call fcn.00401d10
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 0
call fcn.00401db0
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x18

Function at 0x401c80
Capabilities:
Set registry value

Disassembly:
mov edx, dword [ecx + 4]
test edx, edx
jne 0x401c8c
xor eax, eax
ret 0x10
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x401ca6
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
pop edi
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0xc]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
pop esi
inc eax
ret 0x10
Function at 0x402f60
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x100
push ebx
push ebp
push esi
mov esi, dword [esp + 0x114]
test esi, esi
push edi
je 0x403042
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x100
ja 0x403042
mov ebx, dword [esp + 0x114]
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
xor edi, edi
jmp 0x402fa3
mov esi, dword [esp + 0x118]
push edi
lea eax, [esp + 0x14]
push esi
push eax
call ebp
add esp, 0xc
test ebx, ebx
je 0x402fef
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x402fd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x403020
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, 0x100
jb 0x402f9c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x100
ret
lea edx, [esp + 0x10]
push edx
push 1
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov esi, eax
test esi, esi
je 0x403013
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40302d
jmp 0x402fd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x403034
jmp 0x402fd9
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x100
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x100
ret
Function at 0x404548
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406938
test esi, esi
jne 0x404580
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406a74
jmp 0x40459e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040448c
mov edi, eax
test esi, esi
je 0x40459e
cmp dword [ebx], 0
je 0x40459e
dec esi
jmp 0x404587
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405eb4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e8050], 0
je 0x405f15
cmp word [0x4e832c], 0xd7b2
jne 0x405edd
cmp dword [0x4e8334], 0
jbe 0x405edd
mov eax, 0x4e8328
call dword [0x4e8344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x405f40
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4e2030], 0
jne 0x405f31
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4060a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4e2034], 0
je 0x4060c6
mov edx, esi
mov eax, ebx
call dword [0x4e2034]
jmp 0x4060d5
mov eax, 8
call fcn.004041d4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4e8051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406068
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4086f4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40885b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406938
cmp si, word [0x4e27d0]
jb 0x40878e
cmp si, word [0x4e29d0]
ja 0x40878e
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x40878e
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4e27d0]
jae 0x408768
mov edi, ebx
dec edi
jmp 0x408789
cmp si, word [ebx*8 + 0x4e27d0]
jbe 0x408778
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408789
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4e27d4]
call fcn.00408604
jmp 0x40878e
cmp edi, dword [ebp - 0xc]
jae 0x408752
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x40883d
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40883d
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406b38
push dword [ebp - 0x164]
push 0x408878
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406b38
push dword [ebp - 0x168]
push 0x408888
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406b38
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406ef0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408862
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406930
ret
Function at 0x40888c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 6], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x408a72
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4eab58
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x4eab70]
cmp ax, word [ebp - 2]
jne 0x4088e4
mov eax, dword [ebp - 6]
mov edx, 0x4eab74
mov ecx, 0x55
call fcn.00406b38
push 0x4eab58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408a5c
push 0x4eab58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.00406938
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408a24
cmp byte [0x4eab54], 0
je 0x4089da
call dword [0x4eab4c]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x4eab50]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x4089d3
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x4eab48]
test al, al
je 0x4089ac
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.004041d4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x4eab48]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x4089a1
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x40899d
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x40898a
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.00406ae4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408a24
movzx eax, word [ebp - 0x16]
push eax
call dword [0x4eab50]
cmp dword [ebp - 0x10], 0
je 0x4089d2
mov eax, dword [ebp - 0x10]
call fcn.004041f0
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.004086f4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x408a24
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x408a09
mov eax, dword [ebp - 6]
mov edx, 0x408a8c
call fcn.00406d4c
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.004086f4
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.00406d4c
mov eax, dword [ebp - 6]
push 0x4eab58
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x4eab70], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.004069c4
push eax
push 0x4eab74
call sub.kernel32.dll_lstrcpynW
push 0x4eab58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408a79
lea eax, [ebp - 0x1c]
call fcn.00406928
ret