joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415d20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x43c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x42b410
mov dword [ebp - 0x2c], ecx
mov edi, 0x200
lea eax, [ebp - 0x18]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 2
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x20], 0
cmp edi, 0x201
jae 0x415db0
jmp 0x415d9e
jbe 0x415e36
cmp edi, 0x201
jae 0x415db0
mov dword [ebp - 0x34], 0x200
lea ebx, [ebp - 0x448]
mov esi, edi
jmp 0x415de1
mov esi, dword [ebp - 0x38]
sub edi, esi
je 0x415dd5
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x28]
mov edx, esi
push edi
call fcn.0043a930
add esp, 4
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], esi
push 0
call dword [sym.imp.kernel32.dll_SetLastError]
push ebx
push esi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x415e05
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x415e8e
cmp edi, esi
jne 0x415d90
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x415eac
lea edi, [esi + esi]
test esi, esi
mov eax, 0xffffffff
cmovs edi, eax
cmp edi, 0x201
jb 0x415d9e
jmp 0x415db0
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x10], 0
cmp edi, edx
ja 0x415ecc
lea ecx, [ebp - 0x48]
mov edx, ebx
push edi
call fcn.00416500
add esp, 4
movsd xmm0, qword [ebp - 0x48]
mov eax, dword [ebp - 0x2c]
movsd xmm1, qword [ebp - 0x40]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
cmp dword [ebp - 0x28], 0
je 0x415e7a
mov ecx, dword [ebp - 0x24]
call fcn.00425a4f
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x43c
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 4], 0
mov dword [ecx + 8], eax
mov dword [ecx], 0x80000000
cmp dword [ebp - 0x28], 0
jne 0x415e72
jmp 0x415e7a
mov dword [ebp - 0x10], 0
mov ecx, str.internal_error:_entered_unreachable_code__D
mov edx, 0x28
push 0x4418e4
call fcn.00439dd0
add esp, 4
jmp 0x415edb
mov ecx, edi
push 0x4418d4
call fcn.00439d70
add esp, 4
ud2
Function at 0x41a870
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x34
mov eax, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov edi, edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0x103
lea edx, [ebp - 0x14]
push 0
push 0
push ecx
push eax
push edx
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x41a8ba
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x14]
cmp eax, 0xc0000011
jne 0x41a8ca
mov dword [esi + 4], 0
jmp 0x41a8db
cmp eax, 0x103
je 0x41a8f4
test eax, eax
js 0x41a8e5
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov byte [esi], 4
add esp, 0x34
pop esi
pop edi
pop ebp
ret
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x41a8de
lea eax, [ebp - 0xc]
mov dword [ebp - 0x3c], 0x44145c
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x18], 0
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x30], 0
push eax
call fcn.004132b0
add esp, 4
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
call fcn.00413410
mov ecx, 7
int 0x29
ud2

Function at 0x41c4b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea ecx, [ebp - 0x24]
push dword [ebp + 8]
call fcn.00418670
add esp, 4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
cmp edx, 0x80000000
je 0x41c4ff
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x2c], eax
call fcn.0041aaa0
mov ebx, dword [ebp - 0x18]
cmp ebx, 0x80000000
jne 0x41c50c
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [esi], eax
mov dword [esi + 4], ecx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp - 0x14]
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x41c525
mov byte [esi], 4
test ebx, ebx
jne 0x41c535
jmp 0x41c504
call dword [sym.imp.kernel32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
test ebx, ebx
je 0x41c504
mov ecx, edi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.00425a4f
Function at 0x4207dc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc0
mov dword [esp + 8], ecx
mov ecx, dword [ebp + 0xc]
call fcn.004207f7

Function at 0x420fac
Capabilities:
Create pipe
Resolve function by parsing pe exports
Suspend thread

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x47c
mov edi, dword [edx + 0xc]
mov dword [esp + 0x104], edx
mov edx, dword [edx + 8]
xorps xmm0, xmm0
call fcn.00420fcb
Function at 0x429540
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, ecx
push 0x40
push 0x3000
push dword [esp + 0x1c]
push 0
push edx
call sub.kernel32.dll_VirtualAllocEx
test eax, eax
je 0x429568
mov dword [esi + 4], eax
mov dword [esi], 0x80000001
jmp 0x4295ab
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
mov al, byte [0x44b9c8]
mov ecx, 0x19
mov ebp, 0x19
call fcn.00425980
test eax, eax
je 0x4295b0
mov ebx, eax
push ebp
push str.Error_on_child_allocationCould_not_close_handle
push eax
call fcn.0042c2f0
add esp, 0xc
mov dword [esi], ebp
mov dword [esi + 4], ebx
mov dword [esi + 8], ebp
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], 0
pop esi
pop edi
pop ebx
pop ebp
ret
xor ecx, ecx
mov edx, 0x19
inc ecx
call fcn.00439b70

Function at 0x42be78
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
je 0x42beb7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42beb7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42beb7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42beb7
cmp dword [ecx + 0x74], 0xe
jbe 0x42beb7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x433027
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4330c4
push ebx
push esi
call fcn.00432ff0
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00432f39
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x433071
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4330c3
push edi
push eax
call fcn.00433c27
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x433091
call fcn.00431b61
pop ecx
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4330c2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00432f39
add esp, 0x20
test eax, eax
jne 0x4330b0
push edi
call fcn.00431b61
jmp 0x4330b8
push ebx
call fcn.00431b61
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4343aa
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x445718
push 0x445710
push str.FlsAlloc
push 0x1e
call fcn.0043426b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4343de
push dword [ebp + 8]
mov ecx, esi
call dword [0x43c200]
call esi
jmp 0x4343e4
call dword [sym.imp.kernel32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x434428
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x445728
push 0x445720
push str.FlsGetValue
push 0x20
call fcn.0043426b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43445f
push dword [ebp + 8]
mov ecx, esi
call dword [0x43c200]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.kernel32.dll_TlsGetValue]
Function at 0x4398e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43990d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43990d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x43b237
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov dword [esp], edx
mov ebx, ecx
mov ecx, dword fs:[0x2c]
mov eax, dword [0x44b9cc]
mov eax, dword [ecx + eax*4]
cmp dword [eax + 0x24], 0
je 0x43b2e2
mov eax, dword [0x44b9cc]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
movsd xmm0, qword [eax + 0x30]
movsd xmm1, qword [eax + 0x28]
movsd qword [esp + 0xc], xmm0
movsd qword [esp + 4], xmm1
mov esi, dword [esp + 8]
mov edi, dword [esp + 0xc]
mov ebp, dword [esp + 0x10]
mov edx, dword [ebx + esi*4]
test edx, edx
jne 0x43b2bc
mov ecx, edi
call fcn.00428920
mov edx, eax
xor eax, eax
lock cmpxchg dword [ebx + esi*4], edx
je 0x43b2bc
mov ecx, edx
mov edx, edi
mov esi, eax
call fcn.00428691
mov edx, esi
mov esi, dword [esp]
shl ebp, 6
mov ecx, 0xe
lea eax, [edx + ebp]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov byte [edx + ebp + 0x38], 1
lock inc dword [ebx + 0x84]
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x44b9cc]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
lea ecx, [esp + 4]
lea edx, [eax + 0x24]
call fcn.0043b331
jmp 0x43b28a
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
je 0x432072
nop
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x7b111653
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
je 0x4320d2
nop
nop
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x514b0e2b
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4012cd
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebx
mov edx, 0xb
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4012d3
mov eax, dword [esp + 0x38]
mov dword [0x405368], eax
mov edx, dword [esp + 0x34]
lea ecx, [esp]
call fcn.00402000
push 0
push 0
push 0
push 0
push str.MyUserAgent
call sub.WININET.DLL_InternetOpenA
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x4014c5
mov eax, dword [0x405368]
push eax
push eax
push 0x405033
push 3
push dword [esp + 0x10]
call fcn.00402540
lea eax, [esp + 0x28]
push eax
call fcn.00402cc0
push dword [0x405368]
mov edx, 0x405033
call fcn.00402d40
mov eax, dword [0x405368]
push eax
push eax
push 0x405033
push 4
push dword [esp + 0x14]
call fcn.00402540
pop eax
lea eax, [esp + 0x2c]
push eax
call fcn.00402cc0
push 0
push 0
push 3
push 0
push 0
push 0x50
push dword [esp + 0x3c]
push dword [esp + 0x20]
call sub.WININET.DLL_InternetConnectA
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
je 0x4014bc
push 0
push 0x84000000
push 0
push 0
push 0
push dword [esp + 0x3c]
push 0x405035
push dword [esp + 0x24]
call sub.WININET.DLL_HttpOpenRequestA
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
je 0x4014b3
push 0
push 0
push 0
push 0
push dword [esp + 0x1c]
call sub.WININET.DLL_HttpSendRequestA
and eax, eax
je 0x4014aa
mov dword [esp + 0x1c], 0x400
push dword [esp + 0x1c]
call fcn.00402610
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
add ebx, dword [esp + 0x1c]
push ebx
push dword [esp + 0x18]
call sub.WININET.DLL_InternetReadFile
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 0x18]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x18]
and ebx, ebx
jle 0x401476
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 0x1c]
push ebx
push dword [esp + 0x14]
call fcn.00402660
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x18]
and ebx, ebx
jne 0x401431
mov eax, dword [0x405368]
push eax
push eax
push 8
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.00402690
lea eax, [esp + 0x24]
push eax
call fcn.00402cc0
push dword [esp + 0x10]
call fcn.00402810
push dword [esp + 0xc]
call sub.WININET.DLL_InternetCloseHandle
push dword [esp + 8]
call sub.WININET.DLL_InternetCloseHandle
push dword [esp + 4]
call sub.WININET.DLL_InternetCloseHandle
mov edx, dword [esp + 0x20]
push dword [0x405368]
call fcn.00402d40
pop eax
add eax, dword [0x405078]
jmp 0x4014eb
push dword [esp]
call fcn.00402da0
push dword [esp + 0x20]
call fcn.00402da0
push dword [esp + 0x24]
call fcn.00402da0
push dword [esp + 0x28]
call fcn.00402da0
add esp, 0x2c
pop ebx
ret 4
Function at 0x407be0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x407bf3
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407bef
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x407c10
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x407c4f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x407c45
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x407c51
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x407c35
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x419550
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa8
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [esp + 0x8c], 0
mov dword [esp + 0x88], 0x64a7
mov word [esp + 0x82], 0x7bb0
mov dword [esp + 0x7c], 0x31f5
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0x4497
xor esi, esi
mov edi, 0x4497
mov dword [esp + 0x40], 0x5811
mov bx, word [esp + 0x86]
or bx, 0x4c10
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x38]
xor eax, 0x7169
mov word [esp + 0x86], bx
sub eax, 0x4496
seta bl
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x34]
test eax, eax
setne bh
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], esi
mov byte [esp + 0x1f], bh
mov byte [esp + 0x1e], bl
je 0x41961e
mov al, byte [esp + 0x1f]
mov byte [esp + 0x1e], al
mov al, byte [esp + 0x1e]
test al, al
jne 0x4196f2
jmp 0x41962c
movzx eax, word [esp + 0x82]
mov ecx, eax
xor ecx, 0x7d2b
mov dx, cx
mov ecx, 0xffffa4bb
sub ecx, eax
mov si, cx
mov dword [esp + 0x9c], 0
mov dword [esp + 0x98], 0
mov word [esp + 0x4c], dx
cmp si, word [esp + 0x4c]
jb 0x41966b
lea eax, [esp + 0x4f]
lea ecx, [0x4011da]
mov edx, 0x15
mov esi, 0x60af
mov edi, dword [esp + 0x7c]
xor edi, 0x31f5
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x48], ebx
mov bl, byte [esp + 0x85]
mov bh, 0xa4
mov dword [esp + 0x18], eax
mov al, bl
mul bh
mov byte [esp + 0x85], al
mov eax, dword [esp + 0x28]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x64], eax
sub esi, dword [esp + 0x94]
mov dword [esp + 0x94], esi
mov dword [esp + 0x44], edi
mov esi, dword [esp + 0x18]
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x15
mov dword [esp + 0x14], edx
call fcn.00403db0
mov eax, dword [esp + 0x18]
add eax, 8
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x44]
cmp eax, dword [esp + 0x48]
jae 0x4197a9
mov eax, 0x9bb2
mov ecx, dword [esp + 0x7c]
mov edx, 0x2ff8
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov eax, esi
mul edx
mov edi, dword [esp + 0x20]
imul ebx, edi, 0x2ff8
add edx, ebx
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], edx
mov eax, dword [esp + 0x10]
sub eax, ecx
cmp dword [esp + 0x40], eax
jae 0x4196f2
mov eax, 0xc
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x44]
movzx ecx, byte [ecx + edx]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x9c], esi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x98], edi
mov dword [esp + 0xc], eax
mov eax, edx
xor edx, edx
mov ebx, dword [esp + 0xc]
div ebx
mov esi, dword [esp + 0x78]
movzx edx, byte [esi + edx]
sub ecx, edx
mov byte [esp + 0x85], 0x7e
mov edx, dword [esp + 0x7c]
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x64]
add edx, 0xffffce0c
mov byte [edi + esi], cl
add edx, dword [esp + 0x44]
mov dword [esp + 0x44], edx
jmp 0x4196f2
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4048a0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x150
mov eax, dword [0x45cdfc]
xor eax, esp
mov dword [esp + 0x14c], eax
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov edx, dword [esp]
shl edx, 4
sub edx, dword [esp]
shl edx, 2
mov dword [0x45e298], edx
mov dword [0x45e29c], edx
cmp eax, 2
jne 0x4048ee
mov ecx, dword [esp + 0xa8]
shl ecx, 4
sub ecx, dword [esp + 0xa8]
jmp 0x4048fe
cmp eax, 1
jne 0x404906
mov ecx, dword [esp + 0x54]
shl ecx, 4
sub ecx, dword [esp + 0x54]
lea eax, [edx + ecx*4]
mov dword [0x45e29c], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push edi
push 6
push 0x45b5f8
push 0xe
push 0x400
call esi
push 6
push 0x45b604
push 0xf
push 0x400
call esi
push 0xa0
lea eax, [esp + 0xb8]
push 0
push eax
call fcn.004201f0
add esp, 0xc
lea eax, [esp + 0xb4]
push 0x50
push eax
push 0x1f
push 0x400
call esi
movzx eax, word [esp + 0xb4]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
mov ecx, dword [0x45e290]
cmp ax, 0x64
push 0x50
lea eax, [esp + 0xb8]
mov edi, 1
push eax
push 0x1003
cmove ecx, edi
push 0x400
mov dword [0x45e290], ecx
call esi
cmp word [esp + 0xb4], 0x48
mov eax, dword [0x45e294]
cmove eax, edi
cmp dword [0x45e290], 1
pop edi
mov dword [0x45e294], eax
pop esi
jne 0x4049da
push 0x3c
push dword [0x45b100]
push str.MM_dd_yy
call fcn.0040a520
mov eax, dword [0x45e294]
add esp, 0xc
mov dword [0x45b10c], 0x43fdfc
cmp eax, 1
jne 0x4049fe
push 0x3c
push dword [0x45b108]
push str.hh:mm:ss_tt
call fcn.0040a520
mov eax, dword [0x45b108]
add esp, 0xc
mov dword [0x45e2ac], eax
mov ecx, dword [esp + 0x14c]
xor ecx, esp
call fcn.0041e5aa
add esp, 0x150
ret
Function at 0x404be0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x994
mov eax, dword [0x45cdfc]
xor eax, esp
mov dword [esp + 0x990], eax
push edi
mov edi, dword [esp + 0x9a0]
xor eax, eax
mov word [esp + 0x194], ax
lea eax, [esp + 0x9a8]
push eax
push 0
push dword [esp + 0x9ac]
lea eax, [esp + 0x1a0]
push 0xffffffffffffffff
push 0x400
push eax
call fcn.00404fe0
push dword [eax + 4]
push dword [eax]
call fcn.00425024
or ecx, 0xffffffff
add esp, 0x20
test eax, eax
cmovs eax, ecx
test eax, eax
jns 0x404c4e
xor eax, eax
mov word [esp + 0x992], ax
call fcn.004193d0
test al, al
je 0x404ce1
push ebx
push esi
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
test esi, esi
jne 0x404c75
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x404c94
test edi, edi
je 0x404c7f
cmp word [edi], 0
jne 0x404c94
push 0xc8
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edi, [esp + 0xc]
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esp + 0x9a4]
mov ebx, eax
or ecx, 0x10000
lea eax, [esp + 0x19c]
push ecx
push edi
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, eax
test ebx, ebx
je 0x404cc7
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, esi
pop esi
pop ebx
pop edi
mov ecx, dword [esp + 0x990]
xor ecx, esp
call fcn.0041e5aa
add esp, 0x994
ret
mov ecx, dword [esp + 0x99c]
and ecx, 0xf
cmp ecx, 4
je 0x404d14
cmp ecx, 3
je 0x404d14
xor eax, eax
cmp ecx, 5
pop edi
sete al
inc eax
mov ecx, dword [esp + 0x990]
xor ecx, esp
call fcn.0041e5aa
add esp, 0x994
ret
mov ecx, dword [esp + 0x994]
mov eax, 6
pop edi
xor ecx, esp
call fcn.0041e5aa
add esp, 0x994
ret

Function at 0x404d50
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x194
mov eax, dword [0x45cdfc]
xor eax, esp
mov dword [esp + 0x190], eax
push ebp
mov ebp, dword [esp + 0x1ac]
push esi
mov esi, dword [esp + 0x1a0]
push edi
mov edi, dword [esp + 0x1b0]
call fcn.004193d0
test al, al
je 0x404e0c
test esi, esi
jne 0x404da5
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
test esi, esi
jne 0x404da5
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x404dc4
test edi, edi
je 0x404daf
cmp word [edi], 0
jne 0x404dc4
push 0xc8
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edi, [esp + 0xc]
push ebx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esp + 0x1ac]
mov ebx, eax
or ecx, 0x10000
push ecx
push edi
push ebp
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, eax
test ebx, ebx
je 0x404df1
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0041e5aa
add esp, 0x194
ret
mov eax, dword [esp + 0x1ac]
test eax, eax
jne 0x404e4f
mov ecx, dword [esp + 0x1a8]
and ecx, 0xf
cmp ecx, 4
je 0x404e4a
cmp ecx, 3
je 0x404e4a
cmp ecx, 5
pop edi
sete al
pop esi
inc eax
pop ebp
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0041e5aa
add esp, 0x194
ret
mov eax, 6
mov ecx, dword [esp + 0x19c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0041e5aa
add esp, 0x194
ret