joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e233
Capabilities:
Check http status code

Disassembly:
push 0x84
mov eax, 0x461e29
call fcn.0043a6dd
mov edi, ecx
push ecx
push 0x13
call fcn.0041dcfb
mov esi, eax
cmp esi, 0xc8
je 0x41e2f8
cmp esi, 0xce
je 0x41e2f8
cmp esi, 0x193
jne 0x41e2ba
push 0x472e86
lea ecx, [ebp - 0x2c]
call fcn.004069c2
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
push 0x14
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
call fcn.0041de38
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00406b80
push ecx
push str.Export_Denied
lea ecx, [ebp - 0x44]
call fcn.0041a8cd
cmp eax, 0xffffffff
jne 0x41e2fe
or dword [ebp - 4], eax
lea ecx, [ebp - 0x44]
call fcn.00406999
push esi
lea ecx, [ebp - 0x90]
call fcn.0041bfdc
mov edx, eax
push 0x2ce
push str.HttpConnection::Response::checkStatus
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u333_2551_install_src_windows_common_NetUtils.cpp
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 4
call fcn.00404614
push eax
lea ecx, [ebp - 0x70]
call fcn.0041ec11
mov dword [esp], 0x4890b8
jmp 0x41e336
call fcn.0043a687
ret
lea ecx, [ebp - 0x90]
call fcn.0041c06e
mov edx, eax
push 0x2cb
push str.HttpConnection::Response::checkStatus
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u333_2551_install_src_windows_common_NetUtils.cpp
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 3
call fcn.00404614
push eax
lea ecx, [ebp - 0x70]
call fcn.0041ec4a
mov dword [esp], 0x489188
lea eax, [ebp - 0x70]
push eax
call fcn.0043da9d
int3

Function at 0x41e5ab
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x48b068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x3c
pop ebx
push ebx
lea eax, [ebp - 0x58]
mov esi, edx
push 0
push eax
mov edi, ecx
call fcn.0043c350
mov dword [ebp - 0x58], ebx
add esp, 0xc
xor ebx, ebx
inc ebx
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x44], ebx
jb 0x41e5e5
mov edi, dword [edi]
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x41e5fc
xor al, al
jmp 0x41e63a
mov eax, dword [ebp - 0x4c]
push 3
pop ecx
sub eax, ecx
je 0x41e613
sub eax, 1
je 0x41e60f
mov dword [esi], ebx
jmp 0x41e619
mov dword [esi], ecx
jmp 0x41e619
mov dword [esi], 2
push dword [ebp - 0x44]
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x48]
call fcn.00417138
push eax
lea ecx, [esi + 4]
call fcn.00409fe1
lea ecx, [ebp - 0x1c]
call fcn.00406b80
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00439dc4
leave
ret
Function at 0x420d9d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x110
mov eax, 0x4622b5
call fcn.0043a6dd
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
call fcn.00420d7f
mov ebx, eax
test ebx, ebx
je 0x420e8b
mov esi, dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
push dword [edi + 0x38]
call esi
test eax, eax
jne 0x420e43
push str.cannot_load_resource
lea ecx, [ebp - 0x2c]
call fcn.004069c2
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x68]
mov ecx, edi
push eax
call fcn.00420cc1
push eax
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 5
call fcn.00417432
push str.System_error
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x84]
call fcn.0042afe6
mov edx, eax
push 0x46
push str.Resource::getPtr
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x78]
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u333_2551_install_src_windows_common_Resources.cpp
jmp 0x420ef8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp dword [edi + 0x34], 6
mov esi, eax
jne 0x420e72
mov ecx, dword [edi + 0x18]
and ecx, 0xf
jbe 0x420e68
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x420e5a
movzx eax, word [esi]
add eax, eax
add esi, 2
jmp 0x420e7c
push ebx
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x6c]
mov dword [ecx], eax
mov eax, esi
call fcn.0043a687
ret 4
push str.cannot_find_resource
lea ecx, [ebp - 0x2c]
call fcn.004069c2
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x68]
mov ecx, edi
push eax
call fcn.00420cc1
push eax
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 1
call fcn.00417432
push str.System_error
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [sym.imp.KERNEL32.dll_FindResourceA]
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x78]
call fcn.0042afe6
mov edx, eax
push 0x41
push str.Resource::getPtr
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x84]
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u333_2551_install_src_windows_common_Resources.cpp
call fcn.00404614
push eax
lea ecx, [ebp - 0x50]
call fcn.0041eb9f
lea eax, [ebp - 0x50]
mov dword [esp], 0x4890f4
push eax
call fcn.0043da9d
int3

Function at 0x424131
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0x24
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.0043c350
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x24], 9
sete al
leave
ret

Function at 0x425bca
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 0x10
jb 0x425bd2
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
ret
Function at 0x425be0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 0x10
jb 0x425be8
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x425bfb
test al, 0x10
je 0x425bfb
mov al, 1
ret
xor al, al
ret

Function at 0x425edb
Capabilities:
Get file version info

Disassembly:
push 0xe8
mov eax, 0x4630b6
call fcn.0043a6dd
mov esi, ecx
mov dword [ebp - 0x3c], esi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x44], esi
push eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call fcn.00407be2
lea edi, [esi + 0x18]
mov dword [ebp - 4], ebx
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov byte [ebp - 4], 1
mov eax, esi
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x3c], ebx
jb 0x425f22
mov eax, dword [esi]
mov ebx, dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
lea ecx, [ebp - 0x3c]
push ecx
push eax
call ebx
test eax, eax
je 0x425fe7
push edi
push eax
mov ecx, edi
call fcn.00414ee1
mov eax, dword [edi + 4]
mov ecx, esi
sub eax, dword [edi]
cmp dword [esi + 0x14], 0x10
jb 0x425f4f
mov ecx, dword [esi]
push dword [edi]
mov edi, dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
push eax
push dword [ebp - 0x3c]
push ecx
call edi
test eax, eax
jne 0x425fdd
push 0x46d
push str.VersionResource::VersionResource
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u333_2551_install_src_windows_common_FileUtils.cpp
lea ecx, [ebp - 0x5c]
call fcn.00404614
push eax
push str.System_error
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x478d34
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x40], esp
push esi
call fcn.00407bc8
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 6
call fcn.004088ff
mov byte [ebp - 4], 7
push str.GetFileVersionInfo_
mov ecx, eax
call fcn.0040be30
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.0040be44
mov ecx, eax
call fcn.0040be30
push eax
lea ecx, [ebp - 0x50]
call fcn.0042afe6
mov byte [ebp - 4], 9
jmp 0x42605d
mov eax, esi
call fcn.0043a687
ret 4
push 0x464
push str.VersionResource::VersionResource
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u333_2551_install_src_windows_common_FileUtils.cpp
lea ecx, [ebp - 0x50]
call fcn.00404614
push eax
push str.System_error
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x478d34
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x40], esp
push esi
call fcn.00407bc8
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 2
call fcn.004088ff
mov byte [ebp - 4], 3
push str.GetFileVersionInfoSize_
mov ecx, eax
call fcn.0040be30
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.0040be44
mov ecx, eax
call fcn.0040be30
push eax
lea ecx, [ebp - 0x5c]
call fcn.0042afe6
mov byte [ebp - 4], 5
mov edx, eax
lea ecx, [ebp - 0x38]
call fcn.0041eb9f
lea eax, [ebp - 0x38]
mov dword [esp], 0x4890f4
push eax
call fcn.0043da9d
int3
Function at 0x426e88
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xac]
sub esp, 0xac
push 0xffffffffffffffff
push 0x4634ef
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x48b068]
xor eax, ebp
mov dword [ebp + 0xa8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x24], ebx
mov esi, dword [ebp + 0xb4]
lea ecx, [ebp + 0x78]
mov edi, dword [ebp + 0xb8]
mov eax, dword [ebp + 0xbc]
mov dword [ebp - 0x20], esi
push edi
mov dword [ebp - 0x20], eax
call fcn.004265a6
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp + 0x88], eax
je 0x426f25
push eax
lea eax, [ebp + 0x78]
push eax
push ebx
lea ecx, [ebp + 0x3c]
call fcn.00426813
push dword [ebp - 0x20]
lea ecx, [ebp + 0x90]
mov byte [ebp - 4], 1
push ecx
push esi
mov ecx, eax
call fcn.00426e88
lea ecx, [ebp + 0x3c]
call fcn.004268ab
jmp 0x426f9d
mov ecx, eax
mov dword [ebp - 0x10], eax
mov edx, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov byte [ebp - 4], 2
mov eax, edx
sub eax, ecx
mov dword [ebp - 0x1c], eax
xor eax, eax
cmp ecx, edx
cmove ecx, eax
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x426f4e
mov eax, dword [edi]
lea edx, [ebp - 0x1c]
push edx
push ecx
push dword [ebp - 0x20]
push 0
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
cmp ebx, 0xea
je 0x426fd7
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
jne 0x426ff4
test ebx, ebx
jne 0x426ff8
test ecx, ecx
jne 0x426fda
lea eax, [ebp - 0x18]
push eax
push ecx
mov ecx, eax
call fcn.00414ee1
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.00414eb4
lea ecx, [ebp - 0x18]
call fcn.004115dc
lea ecx, [ebp + 0x90]
call fcn.00406b80
lea ecx, [ebp + 0x78]
call fcn.00406b80
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa8]
xor ecx, ebp
call fcn.00439dc4
add ebp, 0xac
leave
ret 0xc
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
push ecx
mov ecx, eax
call fcn.00414ee1
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x24]
jmp 0x426f36
test ebx, ebx
je 0x426f7e
push str.query_value
lea ecx, [ebp + 0x60]
call fcn.004069c2
lea ecx, [ebp]
call fcn.0040a00a
mov ecx, dword [ebp - 0x24]
push eax
push edi
lea eax, [ebp + 0x60]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp + 0x48]
push eax
call fcn.00427905
push eax
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 5
call fcn.00417432
push str.System_error
push ebx
mov byte [ebp - 4], 6
lea eax, [ebp - 0xd4]
push dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x30]
push eax
call fcn.0042afe6
mov edx, eax
push 0x12b
push str.Registry::getValue
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u333_2551_install_src_windows_common_Registry.cpp
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 7
call fcn.00404614
push eax
lea ecx, [ebp + 0x18]
call fcn.0041eb9f
lea eax, [ebp + 0x18]
mov dword [esp], 0x4890f4
push eax
call fcn.0043da9d
int3
Function at 0x4277c2
Capabilities:
Delete registry value

Disassembly:
push 0x104
mov eax, 0x4636ac
call fcn.0043a6dd
mov ebx, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x40]
push esi
call fcn.004265a6
cmp dword [ebp - 0x30], 0
je 0x427860
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x78]
push 0
or eax, 0x2001f
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebx]
call fcn.004265d8
mov edi, dword [ebp - 0x70]
add esp, 0x10
mov esi, dword [ebp - 0x78]
test edi, edi
je 0x427810
mov al, byte [ebp - 0x74]
jmp 0x427845
push 0x48d67c
lea eax, [ebp - 0x28]
push eax
mov al, byte [ebp - 0x74]
push ecx
push ecx
mov ecx, esp
mov byte [ecx + 4], al
lea eax, [ebp - 0x40]
push eax
mov dword [ecx], esi
lea ecx, [ebp - 0x64]
push ebx
call fcn.00426774
mov ecx, eax
call fcn.004277c2
lea ecx, [ebp - 0x64]
mov edi, eax
call fcn.004268ab
xor eax, eax
mov dword [ebp - 4], 1
test al, al
je 0x4278eb
push esi
call fcn.0042ad3e
pop ecx
jmp 0x4278eb
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x42786a
mov eax, dword [esi]
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, eax
test edi, edi
jne 0x4278eb
cmp dword [0x48e68c], eax
jg 0x4278eb
push ecx
push ecx
lea ecx, [ebp - 0x110]
call fcn.0040a894
mov edx, str.Deleted__
lea ecx, [ebp - 0x110]
call fcn.0040c4f1
sub esp, 0x18
mov ecx, ebx
mov eax, esp
push esi
push eax
call fcn.00426a8a
lea ecx, [ebp - 0x110]
call fcn.0040be44
mov esi, eax
mov edx, str.__value
mov ecx, esi
call fcn.0040c4f1
push esi
push str.Registry::deleteValue
push 0x1d2
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u333_2551_install_src_windows_common_Registry.cpp
push edi
mov ecx, 0x48e68c
call fcn.004089d8
lea ecx, [ebp - 0x110]
call fcn.0040898c
lea ecx, [ebp - 0x28]
call fcn.00406b80
lea ecx, [ebp - 0x40]
call fcn.00406b80
mov eax, edi
call fcn.0043a687
ret 8
Function at 0x42e1bd
Capabilities:
Read file on windows

Disassembly:
push 0x2c
mov eax, 0x464b94
call fcn.0043a6a9
mov eax, edx
mov edi, ecx
mov dword [ebp - 0x14], edi
push ecx
mov edx, 0x47b870
mov ecx, eax
call fcn.00430f4f
mov esi, eax
mov ecx, esi
call fcn.0042f30c
pop ecx
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x18], 1
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
push 0x100001
mov ecx, eax
call fcn.004171ae
push esi
mov ebx, 0x100000
push ebx
push 1
push dword [ebp - 0x28]
call fcn.00444512
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp eax, ebx
ja 0x42e298
push esi
call fcn.0044a3dd
pop ecx
test eax, eax
je 0x42e23d
push 0x133
jmp 0x42e29d
push esi
call fcn.0044a3b1
pop ecx
test eax, eax
jne 0x42e24f
push 0x13b
jmp 0x42e29d
mov ebx, dword [ebp - 0x28]
mov ecx, ebx
mov edx, dword [ebp - 0x10]
call fcn.0042e189
mov ecx, dword [ebp - 0x10]
and dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
lea eax, [ebx + ecx]
cmp ebx, eax
je 0x42e27d
push ecx
push ebx
mov ecx, edi
call fcn.00406baa
lea ecx, [ebp - 0x28]
call fcn.004115dc
test esi, esi
je 0x42e290
push esi
call fcn.0044390d
pop ecx
mov eax, edi
call fcn.0043a672
ret
push 0xc8
lea ecx, [ebp - 0x38]
call fcn.0040d16b
push 0x488da0
lea eax, [ebp - 0x38]
push eax
call fcn.0043da9d
int3

Function at 0x434129
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ebx, ecx
push edi
mov edi, dword [esp + 0x24]
mov ebp, SysReAllocString
test edi, edi
jl 0x4341ac
jg 0x434155
test esi, esi
je 0x4341ac
test edi, edi
jg 0x434155
jl 0x434151
cmp esi, ebp
jae 0x434155
mov eax, esi
jmp 0x434157
mov eax, ebp
and dword [esp + 0x20], 0
cmp dword [esp + 0x18], 0xffffffff
je 0x43419d
push 0
lea ecx, [esp + 0x24]
push ecx
push eax
push ebx
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x434187
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x4341a7
jmp 0x43419d
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x434198
add ebx, eax
cdq
sub esi, eax
sbb edi, edx
jmp 0x43413d
cmp eax, 0xffffffff
jne 0x4341a7
call fcn.00442214
cmp dword [eax], 4
je 0x43413d
or eax, 0xffffffff
jmp 0x4341ae
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x45225d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004520d3
Function at 0x40726c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00409fb8
test esi, esi
jne 0x4072a2
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.0040a140
jmp 0x4072c0
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004071b0
mov edi, eax
test esi, esi
je 0x4072c0
cmp dword [ebx], 0
je 0x4072c0
dec esi
jmp 0x4072a9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408c00
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004090c0
mov byte [esp], al
cmp byte [esp], 0
jne 0x408d89
test edi, edi
je 0x408d89
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408cc9
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408ca4
cmp edi, 0xffffffff
je 0x408c65
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408c65
mov byte [esp], 0
jmp 0x408d89
cmp dword [esi], 1
jg 0x408ca4
cmp dword [esi], 0
jne 0x408c96
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408c96
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408d89
lea eax, [esp + 0xc]
call fcn.004088b0
dec ebp
test ebp, ebp
jg 0x408c4a
cmp edi, 0xffffffff
je 0x408cc9
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408cc7
mov byte [esp], 0
jmp 0x408d89
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408c0e
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408cc9
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408e04
mov edx, eax
mov ebx, dword [0x74c8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408d2d
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408d2b
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408d2d
xor edi, edi
cmp byte [esp], 0
je 0x408d53
mov ebx, dword [esi]
test bl, 1
jne 0x408d69
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408d33
mov byte [esp + 1], 1
jmp 0x408d69
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408d53
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408ce0
cmp byte [esp], 0
je 0x408d89
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x409c50
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x74c05c], 0
je 0x409cb7
cmp word [0x74c348], 0xd7b2
jne 0x409c79
cmp dword [0x74c350], 0
jbe 0x409c79
mov eax, 0x74c344
call dword [0x74c360]
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
mov eax, 0x409ce4
call fcn.0040a7d0
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x73e032], 0
jne 0x409cd3
push 0
push 0x73e9d3
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409e78
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x73e034], 0
je 0x409ea3
mov edx, edi
mov eax, esi
call dword [0x73e034]
mov ebx, eax
jmp 0x409eb4
mov eax, 8
call fcn.00406eb4
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x74c05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409e40
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_CreateThread
mov esi, eax
test esi, esi
jne 0x409ee4
mov eax, ebx
call fcn.00406ed0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40d3a8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40d50f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409fb8
cmp si, word [0x73ea10]
jb 0x40d440
cmp si, word [0x73ec10]
ja 0x40d440
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40d440
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x73ea10]
jae 0x40d41a
mov edi, ebx
dec edi
jmp 0x40d43b
cmp si, word [ebx*8 + 0x73ea10]
jbe 0x40d42a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40d43b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x73ea14]
call fcn.0040d2c4
jmp 0x40d440
cmp edi, dword [ebp - 8]
jae 0x40d404
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40d4ef
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x40d4ef
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040aad8
push dword [ebp - 0x160]
push 0x40d52c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040aad8
push dword [ebp - 0x164]
push 0x40d53c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040aad8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040ad10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d516
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a018
pop eax
jmp eax
Function at 0x40d6c4
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d7ca
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x74ec14
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x74ec2c]
jne 0x40d710
mov eax, esi
mov edx, 0x74ec2e
mov ecx, 0x55
call fcn.0040aad8
push 0x74ec14
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x40d7b2
push 0x74ec14
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
call fcn.00409fb8
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x40d77f
cmp byte [0x74ec10], 0
je 0x40d744
mov edx, esi
mov eax, ebx
call fcn.0040d5a8
jmp 0x40d77f
mov edx, esi
mov eax, ebx
call fcn.0040d3a8
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40d77f
cmp dword [esi], 0
je 0x40d768
mov eax, esi
mov edx, 0x40d7e4
call fcn.0040ac30
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040d3a8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040ac30
push 0x74ec14
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x74ec2c], bx
mov eax, dword [esi]
call fcn.0040aa20
mov ecx, eax
mov eax, 0x74ec2e
mov edx, 0xaa
call fcn.0040d224
push 0x74ec14
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d7d1
lea eax, [ebp - 4]
call fcn.00409fb8
pop eax
jmp eax