joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404626
Capabilities:
Read .ini file

Disassembly:
push 4
mov eax, 0x42c34b
call fcn.004160f0
and dword [ebp - 0x10], 0
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.004012f4
and dword [ebp - 4], 0
push 0x7d
mov dword [ebp - 0x10], 1
pop esi
mov eax, dword [ebp + 0x14]
mov edi, dword [eax]
add esi, esi
push esi
mov ecx, ebx
call fcn.00401308
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
push edi
push esi
push eax
push 0x42d7cc
push ecx
push edx
call dword [0x42d2a4]
push 0xffffffffffffffff
mov ecx, ebx
mov edi, eax
call fcn.004011ad
inc edi
cmp esi, edi
jbe 0x40464e
mov eax, ebx
call fcn.0041618f
ret 0x10

Function at 0x40486b
Capabilities:
Query environment variable

Disassembly:
push 0x1c
mov eax, 0x42bb48
call fcn.004160f0
mov edi, dword [ebp + 8]
push edi
lea ecx, [ebp + 8]
call fcn.00401746
and dword [ebp - 4], 0
mov esi, 0x104
push esi
mov ecx, edi
call fcn.00401308
push esi
mov esi, dword [ebp + 8]
push eax
push esi
call dword [0x42d2a0]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00401030
push 0xffffffffffffffff
mov ecx, edi
call fcn.004011ad
lea ecx, [ebp - 0x28]
call fcn.0040feef
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
mov dword [ebp - 4], 1
je 0x404923
push 0
push eax
lea ecx, [ebp - 0x28]
call fcn.0040ff7d
test eax, eax
je 0x404923
lea ecx, [ebp - 0x28]
call fcn.0040fc04
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x28]
call fcn.004101c0
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.004013ee
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00401030
lea ecx, [ebp - 0x28]
call fcn.0040fb34
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040ff15
xor eax, eax
inc eax
jmp 0x404931
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040ff15
xor eax, eax
call fcn.0041618f
ret 4

Function at 0x404939
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push 4
mov eax, 0x42c34b
call fcn.004160f0
and dword [ebp - 0x10], 0
mov ecx, dword [ebp + 8]
call fcn.004012f4
and dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call dword [0x42d2d8]
movzx eax, ax
movzx eax, ax
mov ecx, 0x41d
cmp eax, ecx
jg 0x4049df
je 0x4049d8
sub eax, 0x404
cmp eax, 0x12
ja case.0x40497d.1029
jmp dword [eax*4 + 0x404a29]
mov eax, 0x8b
jmp 0x4049f2
mov eax, 0x8c
jmp 0x4049f2
mov eax, 0x8a
jmp 0x4049f2
mov eax, 0x85
jmp 0x4049f2
mov eax, 0x86
jmp 0x4049f2
mov eax, 0x88
jmp 0x4049f2
mov eax, 0x89
jmp 0x4049f2
mov eax, 0x8e
jmp 0x4049f2
mov eax, 0x8d
jmp 0x4049f2
mov eax, 0x8f
jmp 0x4049f2
mov eax, 0x90
jmp 0x4049f2
mov eax, 0x84
jmp 0x4049f2
mov eax, 0x91
jmp 0x4049f2
cmp eax, 0x804
je 0x4049ed
mov eax, 0x87
jmp 0x4049f2
mov eax, 0x83
movzx eax, ax
push 0x42d7b0
push eax
push 0
call dword [0x42d2dc]
push eax
push 0
call dword [0x42d2e0]
push eax
call dword [0x42d2e4]
mov ecx, dword [ebp + 8]
push eax
call fcn.00401893
mov eax, dword [ebp + 8]
call fcn.0041618f
ret 4
Function at 0x404a75
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push 4
mov eax, 0x42c34b
call fcn.004160f0
and dword [ebp - 0x10], 0
mov ecx, dword [ebp + 8]
call fcn.004012f4
and dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call dword [0x42d2d8]
movzx eax, ax
movzx eax, ax
mov ecx, 0x41d
cmp eax, ecx
jg 0x404b1b
je 0x404b14
sub eax, 0x404
cmp eax, 0x12
ja case.0x404ab9.1029
jmp dword [eax*4 + 0x404b65]
mov eax, 0xc3
jmp 0x404b2e
mov eax, 0xc4
jmp 0x404b2e
mov eax, 0xc2
jmp 0x404b2e
mov eax, 0xca
jmp 0x404b2e
mov eax, 0xcb
jmp 0x404b2e
mov eax, 0xcd
jmp 0x404b2e
mov eax, 0xce
jmp 0x404b2e
mov eax, 0xc6
jmp 0x404b2e
mov eax, 0xc5
jmp 0x404b2e
mov eax, 0xc7
jmp 0x404b2e
mov eax, 0xc8
jmp 0x404b2e
mov eax, 0xc0
jmp 0x404b2e
mov eax, 0xc9
jmp 0x404b2e
cmp eax, 0x804
je 0x404b29
mov eax, 0xcc
jmp 0x404b2e
mov eax, 0xc1
movzx eax, ax
push 0x42d7b0
push eax
push 0
call dword [0x42d2dc]
push eax
push 0
call dword [0x42d2e0]
push eax
call dword [0x42d2e4]
mov ecx, dword [ebp + 8]
push eax
call fcn.00401893
mov eax, dword [ebp + 8]
call fcn.0041618f
ret 4

Function at 0x404bb1
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push 4
mov eax, 0x42c34b
call fcn.004160f0
and dword [ebp - 0x10], 0
mov ecx, dword [ebp + 8]
call fcn.004012f4
and dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call dword [0x42d2d8]
movzx eax, ax
movzx eax, ax
mov ecx, 0x41d
cmp eax, ecx
jg 0x404c57
je 0x404c50
sub eax, 0x404
cmp eax, 0x12
ja case.0x404bf5.1029
jmp dword [eax*4 + 0x404ca1]
mov eax, 0xd2
jmp 0x404c6a
mov eax, 0xd3
jmp 0x404c6a
mov eax, 0xd1
jmp 0x404c6a
mov eax, 0xd9
jmp 0x404c6a
mov eax, 0xda
jmp 0x404c6a
mov eax, 0xdc
jmp 0x404c6a
mov eax, 0xdd
jmp 0x404c6a
mov eax, 0xd5
jmp 0x404c6a
mov eax, 0xd4
jmp 0x404c6a
mov eax, 0xd6
jmp 0x404c6a
mov eax, 0xd7
jmp 0x404c6a
mov eax, 0xd0
jmp 0x404c6a
mov eax, 0xd8
jmp 0x404c6a
cmp eax, 0x804
je 0x404c65
mov eax, 0xdb
jmp 0x404c6a
mov eax, 0xcf
movzx eax, ax
push 0x42d7b0
push eax
push 0
call dword [0x42d2dc]
push eax
push 0
call dword [0x42d2e0]
push eax
call dword [0x42d2e4]
mov ecx, dword [ebp + 8]
push eax
call fcn.00401893
mov eax, dword [ebp + 8]
call fcn.0041618f
ret 4
Function at 0x404ced
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push 4
mov eax, 0x42c34b
call fcn.004160f0
and dword [ebp - 0x10], 0
mov ecx, dword [ebp + 8]
call fcn.004012f4
and dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call dword [0x42d2d8]
movzx eax, ax
movzx eax, ax
mov ecx, 0x41d
cmp eax, ecx
jg 0x404d93
je 0x404d8c
sub eax, 0x404
cmp eax, 0x12
ja case.0x404d31.1029
jmp dword [eax*4 + 0x404ddd]
mov eax, 0x140
jmp 0x404da6
mov eax, 0x141
jmp 0x404da6
mov eax, 0x13f
jmp 0x404da6
mov eax, 0x13a
jmp 0x404da6
mov eax, 0x13b
jmp 0x404da6
mov eax, 0x13d
jmp 0x404da6
mov eax, 0x13e
jmp 0x404da6
mov eax, 0x143
jmp 0x404da6
mov eax, 0x142
jmp 0x404da6
mov eax, 0x144
jmp 0x404da6
mov eax, 0x145
jmp 0x404da6
mov eax, 0x139
jmp 0x404da6
mov eax, 0x146
jmp 0x404da6
cmp eax, 0x804
je 0x404da1
mov eax, 0x13c
jmp 0x404da6
mov eax, 0x138
movzx eax, ax
push 0x42d7b0
push eax
push 0
call dword [0x42d2dc]
push eax
push 0
call dword [0x42d2e0]
push eax
call dword [0x42d2e4]
mov ecx, dword [ebp + 8]
push eax
call fcn.00401893
mov eax, dword [ebp + 8]
call fcn.0041618f
ret 4

Function at 0x404e29
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push 4
mov eax, 0x42c34b
call fcn.004160f0
and dword [ebp - 0x10], 0
mov ecx, dword [ebp + 8]
call fcn.004012f4
and dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call dword [0x42d2d8]
movzx eax, ax
movzx eax, ax
mov ecx, 0x41d
cmp eax, ecx
jg 0x404ecf
je 0x404ec8
sub eax, 0x404
cmp eax, 0x12
ja case.0x404e6d.1029
jmp dword [eax*4 + 0x404f19]
mov eax, 0xe6
jmp 0x404ee2
mov eax, 0xe7
jmp 0x404ee2
mov eax, 0xe5
jmp 0x404ee2
mov eax, 0xe1
jmp 0x404ee2
mov eax, 0xe2
jmp 0x404ee2
mov eax, 0xe3
jmp 0x404ee2
mov eax, 0xe4
jmp 0x404ee2
mov eax, 0xe9
jmp 0x404ee2
mov eax, 0xe8
jmp 0x404ee2
mov eax, 0xea
jmp 0x404ee2
mov eax, 0xeb
jmp 0x404ee2
mov eax, 0xdf
jmp 0x404ee2
mov eax, 0xec
jmp 0x404ee2
cmp eax, 0x804
je 0x404edd
mov eax, 0xde
jmp 0x404ee2
mov eax, 0xe0
movzx eax, ax
push 0x42d7b0
push eax
push 0
call dword [0x42d2dc]
push eax
push 0
call dword [0x42d2e0]
push eax
call dword [0x42d2e4]
mov ecx, dword [ebp + 8]
push eax
call fcn.00401893
mov eax, dword [ebp + 8]
call fcn.0041618f
ret 4
Function at 0x404ffa
Capabilities:
Get common file path

Disassembly:
push 0x18
mov eax, 0x42bb73
call fcn.004160f0
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0xb0], ebx
je 0x4050f7
mov eax, dword [esi + 0xcc]
cmp eax, dword [0x430860]
jne 0x4050ce
call fcn.00406519
push eax
lea ecx, [ebp - 0x10]
call fcn.004011d2
mov edi, 0x104
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00401308
push eax
push edi
call dword [0x42d2b8]
test eax, eax
jne 0x405063
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401030
jmp 0x4050f7
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.004011ad
push str.BootStrap.log
lea ecx, [ebp - 0x10]
call fcn.00403145
push ebx
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x24]
call fcn.00404f65
mov edi, dword [ebp - 0x10]
lea edx, [ebp - 0x24]
push edx
lea ecx, [esi + 0xc8]
mov eax, dword [ecx]
push 0x1021
push edi
mov byte [ebp - 4], 1
call dword [eax + 0x20]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
test eax, eax
mov dword [ebp - 0x24], vtable.CFileException.0
jne 0x4050bd
call fcn.00401030
lea ecx, [edi - 0x10]
jmp 0x405059
call fcn.00401030
or dword [ebp - 4], 0xffffffff
lea ecx, [edi - 0x10]
call fcn.00401030
lea edi, [esi + 0xa4]
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x4050f7
add esi, 0xc8
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x54]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x48]
mov ecx, edi
call fcn.00401201
call fcn.0041618f
ret

Function at 0x4050fd
Capabilities:
Shutdown system

Disassembly:
push 0x20
mov eax, 0x42bba7
call fcn.004160f0
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
cmp dword [esi + 0xec], ebx
jne 0x40514b
cmp dword [esi + 0xe8], ebx
je 0x405146
lea eax, [ebp - 0x1c]
push eax
call fcn.00404939
mov eax, dword [eax]
push ebx
push 0x10024
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 1
call fcn.0040cf31
cmp eax, 6
jne 0x40514b
mov byte [ebp - 0xd], bl
jmp 0x40514f
mov byte [ebp - 0xd], 1
test byte [ebp - 0x14], 1
je 0x405160
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401030
cmp byte [ebp - 0xd], bl
jne 0x4051dd
lea eax, [ebp - 0x18]
push eax
mov dword [esi + 0xb4], ebx
push 0x28
xor esi, esi
call dword [0x42d2b0]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
je 0x4051bd
lea eax, [ebp - 0x28]
push eax
push str.SeShutdownPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x20], 2
je 0x4051bd
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push dword [ebp - 0x18]
call edi
mov esi, eax
push 1
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
cmp esi, ebx
je 0x4051dd
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x20], ebx
call edi
call fcn.0041618f
ret
Function at 0x40c5d4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40c617
call fcn.00411642
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [0x42d2dc]
test eax, eax
je 0x40c617
push eax
push esi
call dword [0x42d2e0]
mov edi, eax
test edi, edi
je 0x40c632
push edi
call dword [0x42d2e4]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040c18e
test ebx, ebx
mov esi, eax
je 0x40c630
test edi, edi
je 0x40c630
push edi
call dword [0x42d26c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40ee77
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x40ee80
xor eax, eax
jmp 0x40eee9
cmp dword [esp + 8], 0
jne 0x40ee8c
call fcn.00406410
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.004195d7
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x40eec7
push dword [esi + 0x10]
call fcn.0041931c
test eax, eax
pop ecx
jne 0x40eec7
mov esi, dword [esi + 0xc]
call fcn.00416adc
push esi
push dword [eax]
push 1
call fcn.0040facd
push dword [esi + 0x10]
call fcn.0041934b
test eax, eax
pop ecx
je 0x40eee6
push dword [esi + 0x10]
call fcn.00419270
push eax
call fcn.0040164c
pop ecx
pop ecx
jmp 0x40eeb5
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x40eef2
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x40eefc
call fcn.00406410
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0041970c
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x40ef29
mov esi, dword [esi + 0xc]
call fcn.00416adc
push esi
push dword [eax]
push 1
call fcn.0040facd
pop esi
ret 8

Function at 0x416063
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x438e80]
jne 0x41606d
repz ret
jmp fcn.0041ea5c
Function at 0x424e0a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0041b76d
xor ebx, ebx
cmp dword [0x43cdb8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x424edf
push str.USER32.DLL
call dword [0x42d260]
mov edi, eax
cmp edi, ebx
jne 0x424e4a
xor eax, eax
jmp 0x424fa3
mov esi, dword [0x42d2ac]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x424e43
push eax
call fcn.0041b70a
mov dword [esp], 0x4315bc
push edi
mov dword [0x43cdb8], eax
call esi
push eax
call fcn.0041b70a
mov dword [esp], 0x4315a8
push edi
mov dword [0x43cdbc], eax
call esi
push eax
call fcn.0041b70a
mov dword [0x43cdc0], eax
lea eax, [ebp - 8]
push eax
call fcn.00418837
test eax, eax
pop ecx
pop ecx
je 0x424ead
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041c9cb
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x424edf
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0041b70a
cmp eax, ebx
pop ecx
mov dword [0x43cdc8], eax
je 0x424edf
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041b70a
pop ecx
mov dword [0x43cdc4], eax
mov eax, dword [0x43cdc4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x424f58
cmp dword [0x43cdc8], esi
je 0x424f58
push eax
call fcn.0041b776
pop ecx
call eax
cmp eax, ebx
je 0x424f25
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x43cdc8]
call fcn.0041b776
pop ecx
call eax
test eax, eax
je 0x424f25
test byte [ebp - 0x18], 1
jne 0x424f58
lea eax, [ebp - 0xc]
push eax
call fcn.0041886e
test eax, eax
pop ecx
je 0x424f40
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041c9cb
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x424f4f
or dword [ebp + 0x10], 0x200000
jmp 0x424f89
or dword [ebp + 0x10], 0x40000
jmp 0x424f89
mov eax, dword [0x43cdbc]
cmp eax, esi
je 0x424f89
push eax
call fcn.0041b776
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x424f89
mov eax, dword [0x43cdc0]
cmp eax, esi
je 0x424f89
push dword [ebp - 4]
push eax
call fcn.0041b776
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x43cdb8]
call fcn.0041b776
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42b224
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x438e80]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042b1b9
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004162c0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [0x42d268]
cmp dword [ebp - 0x10], 2
jne 0x42b273
cmp dword [ebp - 0x1c], 5
jb 0x42b28b
jmp 0x42b287
cmp dword [ebp - 0x10], 1
jne 0x42b28b
cmp dword [ebp - 0x1c], 4
ja 0x42b287
jne 0x42b28b
cmp dword [ebp - 0x18], 0
jbe 0x42b28b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4327a4
call fcn.0042b08d
test eax, eax
jge 0x42b2ac
mov byte [0x43a368], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00416063
add ebp, 0x78
leave
ret
Function at 0x802540
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x848b60
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x85f690]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0081baab
mov eax, dword [esi + 0x88]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xf0]
push 0xffffffffffffffff
push eax
call edx
mov eax, dword [esi + 0x114]
push 0
push 0
push 0
push 0
lea edi, [esi + 0x114]
push 0
push eax
mov ecx, esi
call fcn.0081aac0
call fcn.008014a0
lea edi, [esi + 0x120]
mov edx, esi
mov eax, edi
call fcn.00801280
push 0x850fac
lea eax, [esi + 0x11c]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.008028e0
push edi
push eax
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x3c], 0
call fcn.00802820
push 0x850fac
push eax
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x48], 1
call fcn.008028e0
lea ecx, [esi + 0x118]
push ecx
push eax
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x54], 2
call fcn.00802820
add esp, 0x30
mov byte [esp + 0x24], 4
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x80262f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24], 5
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x802654
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24], 6
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x802679
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edi, [esp + 0xc]
call fcn.00801500
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x8026aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret

Function at 0x802a80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.0081cc02

Function at 0x802ad0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x802ae9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x802b24
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x802b20
lea ebx, [ebx]
cmp esi, eax
jae 0x802b24
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x802b10
cmp esi, eax
jb 0x802b2a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x803150
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x848ca8
mov eax, dword fs:[0]
push eax
sub esp, 0x788
mov eax, dword [0x85f690]
xor eax, esp
mov dword [esp + 0x780], eax
push ebx
push esi
push edi
mov eax, dword [0x85f690]
xor eax, esp
push eax
lea eax, [esp + 0x798]
mov dword fs:[0], eax
push 0x802f50
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 8
mov dword [esp + 0x1c], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.0081d924
xor ebx, ebx
push ebx
call fcn.0081ea39
add esp, 4
call fcn.008033f0
push ebx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esi + 0x780]
push edx
mov edi, eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call sub.gdiplus.dll_GdiplusStartup
cmp edi, 3
jne 0x803222
push ebx
push 4
push 0x8512e0
call fcn.0081f168
cmp eax, 7
je 0x803218
call fcn.008039e0
call fcn.00803710
mov eax, 1
jmp 0x803313
cmp edi, ebx
jne 0x803230
call fcn.00803550
jmp 0x803311
push str.GsLoginer_Sjsg
push ebx
push 0x1f0000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [esi + 0xb84], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x80329b
push ebx
push 4
push 0x851330
call fcn.0081f168
cmp eax, 6
jne 0x80329b
push 0x851374
push str.32770
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
cmp esi, ebx
jne 0x803286
push ebx
push ebx
push str._WS_MRL
call fcn.0081f168
push ebx
push ebx
push 0x402
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, 1
jmp 0x803313
call fcn.00805c10
push ebx
lea eax, [esp + 0x30]
push eax
call fcn.0080f240
lea ecx, [esp + 0x2c]
mov dword [esp + 0x7a0], ebx
call fcn.0081c9ca
cmp dword [0x863f08], ebx
jle 0x8032fd
lea ecx, [esp + 0x1f4]
push ecx
call fcn.00803be0
lea edx, [esp + 0x1f4]
mov byte [esp + 0x7a0], 1
mov ecx, edx
mov dword [esi + 0x20], edx
call fcn.0081c9ca
lea eax, [esp + 0x1f4]
push eax
mov byte [esp + 0x7a4], bl
call fcn.00803340
lea ecx, [esp + 0x2c]
mov dword [esp + 0x7a0], 0xffffffff
call fcn.0080f320
xor eax, eax
mov ecx, dword [esp + 0x798]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x780]
xor ecx, esp
call fcn.008321db
mov esp, ebp
pop ebp
ret
Function at 0x8033f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x85f690]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
xor esi, esi
cmp dword [0x863140], 1
jg 0x8034de
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0xe]
push edx
mov word [esp + 0x10], cx
call fcn.00834280
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x222]
push ecx
mov word [esp + 0x224], ax
call fcn.00834280
add esp, 0x18
push 0x104
lea edx, [esp + 0x210]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x8513e4
lea ecx, [esp + 8]
push 0x104
push ecx
call fcn.0083247f
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.00832c44
lea eax, [esp + 0x220]
push 0x104
push eax
call fcn.00832c44
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x22c]
push edx
call fcn.00832c5b
add esp, 0x24
test eax, eax
mov eax, 2
jne 0x8034c8
mov eax, esi
pop esi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.008321db
add esp, 0x414
ret
mov eax, dword [0x863148]
mov ecx, dword [eax + 4]
push ecx
push str._SjsgD
call fcn.008329cc
add esp, 8
test eax, eax
jne 0x803513
mov eax, 1
pop esi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.008321db
add esp, 0x414
ret
mov edx, dword [0x863148]
mov eax, dword [edx + 4]
push eax
push str._uninst
call fcn.008329cc
add esp, 8
test eax, eax
jne 0x803414
mov ecx, dword [esp + 0x414]
pop esi
xor ecx, esp
mov eax, 3
call fcn.008321db
add esp, 0x414
ret